Include ç and Ç in urlid

This commit is contained in:
nemunaire 2022-01-21 12:12:35 +01:00
parent 892bb99461
commit b98e23d060
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@ func ToURLid(str string) string {
re_A := regexp.MustCompile("[ÀÁÂÄĀ]")
str = re_A.ReplaceAllLiteralString(str, "A")
re_c := regexp.MustCompile("[ç]")
str = re_c.ReplaceAllLiteralString(str, "c")
re_C := regexp.MustCompile("[Ç]")
str = re_C.ReplaceAllLiteralString(str, "C")
re_e := regexp.MustCompile("[éèêëȩē]")
str = re_e.ReplaceAllLiteralString(str, "e")
re_E := regexp.MustCompile("[ÉÈÊËĒ]")