diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/twtstr.nim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index 5a5d5819..582d68d4 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -555,10 +555,7 @@ proc mnormalize*(rs: var seq[Rune], form = UNICODE_NFC) = {.cast(noSideEffect).} #TODO maybe a utf8 normalization procedure? proc mnormalize*(s: var string) = - block do_nothing: - for c in s: - if c notin Ascii: - break do_nothing + if s.isAscii(): return # no need to normalize ascii var rs = s.toRunes() rs.mnormalize() |