mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-17 00:24:16 +00:00
fixes #8768 properly
This commit is contained in:
@@ -68,6 +68,6 @@ proc unidecode*(s: string): string =
|
||||
elif c <% translationTable.len: add(result, translationTable[c-128])
|
||||
|
||||
when isMainModule:
|
||||
loadUnidecodeTable("lib/pure/unidecode/unidecode.dat")
|
||||
doAassert unidecode("Äußerst") == "Ausserst"
|
||||
doAssert unidecode("北京") == "Bei Jing"
|
||||
#loadUnidecodeTable("lib/pure/unidecode/unidecode.dat")
|
||||
doAssert unidecode("Äußerst") == "Ausserst"
|
||||
doAssert unidecode("北京") == "Bei Jing "
|
||||
|
||||
Reference in New Issue
Block a user