diff options
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r-- | src/utils/twtstr.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index 3b10cf8c..0d65be50 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -124,7 +124,7 @@ func endsWithIgnoreCase*(s1, s2: string): bool = return false return true -func skipBlanks*(buf: string; at: int): int = +func skipBlanks*(buf: openArray[char]; at: int): int = result = at while result < buf.len and buf[result] in AsciiWhitespace: inc result @@ -386,7 +386,7 @@ func percentDecode*(input: string; si = 0): string = i += 2 inc i -func htmlEscape*(s: string): string = +func htmlEscape*(s: openArray[char]): string = result = "" for c in s: case c |