Skip to content

Commit

Permalink
fix: handle transliteration of 'ø' in speaker slugs
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeyls committed Jan 17, 2025
1 parent 6add2d1 commit 25065eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/be/digitalia/fosdem/utils/StringUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ fun String.toSlug(): String {
return remove('\'')
.removeDiacritics()
.replace("ß", "ss")
.replace('ø', 'o')
.replace('ð', 'd')
.trimNonAlpha()
.replaceNonAlphaGroups('_')
Expand Down

0 comments on commit 25065eb

Please sign in to comment.