Skip to content

Commit

Permalink
Handle special chinese : and ,
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarvelle committed Nov 26, 2024
1 parent 31e26f3 commit 4986c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/no/ndla/taxonomy/util/PrettyUrlUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private static String cleanString(String name) {
.replaceAll("[čĉć]", "c")
.replaceAll("[üùũú]", "u")
.replaceAll("1D45-B7C5", "d")
.replaceAll("", "-")
.replaceAll("[–:,]", "-")
.trim();
}

Expand Down

0 comments on commit 4986c4b

Please sign in to comment.