diff options
Diffstat (limited to 'src/js/regex.nim')
-rw-r--r-- | src/js/regex.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/regex.nim b/src/js/regex.nim index e189b430..f24633d1 100644 --- a/src/js/regex.nim +++ b/src/js/regex.nim @@ -49,7 +49,7 @@ proc compileRegex*(buf: string; flags: LREFlags = {}): Result[Regex, string] = ) return ok(regex) -func countBackslashes(buf: string, i: int): int = +func countBackslashes(buf: string; i: int): int = var j = 0 for i in countdown(i, 0): if buf[i] != '\\': |