diff --git a/unidecode.go b/unidecode.go index 16281da..bc5f8a1 100644 --- a/unidecode.go +++ b/unidecode.go @@ -42,7 +42,7 @@ func Unidecode(s string) string { r = append(r, c) continue } - if c > unicode.MaxRune || c > transCount { + if c > unicode.MaxRune || c >= transCount { /* Ignore reserved chars */ continue }