Skip to content

Commit

Permalink
website: seo: Converting c (the char being inspected) into a String s…
Browse files Browse the repository at this point in the history
…o it can be compared properly to the dashed array converted to String.

https://gitlab.ilscipio.com/scipio-dev/dev/scipioce-dev/issues/1018
  • Loading branch information
minifreak committed Apr 9, 2019
1 parent c40acbc commit a474644
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public static String constructSeoName(String name) {
sb.append(c);
prevdash = false;
}
else if ((new String(dashedArray).indexOf(c) == -1) && (!prevdash && sb.length() > 0)) {
// SCIPIO (2019-04-09): Converting c to a String as well otherwise it doesn't work as expected
else if ((new String(dashedArray).contains(String.valueOf(c))) && (!prevdash && sb.length() > 0)) {
sb.append('-');
prevdash = true;
}
Expand Down

0 comments on commit a474644

Please sign in to comment.