Skip to content

Commit

Permalink
And again
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarvelle committed Dec 3, 2024
1 parent bc6d53d commit ba96ac0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/no/ndla/taxonomy/util/PrettyUrlUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,17 @@ private static String cleanString(String name) {
return Jsoup.parse(name)
.text()
.toLowerCase()
.replaceAll("[.,!?()/«»\"”“'¡:`’#°π€%&|…]", "")
.replaceAll("[.,!?¿()/«»\"”“'¡:`’#°π€%&|…]", "")
.replaceAll("[æååäáǎāàãâ]", "a")
.replaceAll("[øöôóòõǒ]", "o")
.replaceAll("[ïíǐīìĩ]", "i")
.replaceAll("[éèẽêë]", "e")
.replaceAll("[šŝśş]", "s")
.replaceAll("[čĉć]", "c")
.replaceAll("[üùũúû]", "u")
.replaceAll("ð", "d")
.replaceAll("[ðđ]", "d")
.replaceAll("ğ", "g")
.replaceAll("ñ", "n")
.replaceAll("ž", "z")
.replaceAll("ß", "ss")
.replaceAll("₂", "2")
Expand Down

0 comments on commit ba96ac0

Please sign in to comment.