From 6c435aa6c186c2fe7ec72cee2a5ae2f1ae8b22a7 Mon Sep 17 00:00:00 2001 From: bptato Date: Fri, 8 Sep 2023 22:42:34 +0200 Subject: ouch --- src/js/regex.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/js/regex.nim b/src/js/regex.nim index 81b73700..ceb9a0e2 100644 --- a/src/js/regex.nim +++ b/src/js/regex.nim @@ -177,7 +177,7 @@ proc exec*(regex: Regex, str: string, start = 0, length = -1, nocaps = false): R if start >= str.len: break if ps == start: - start += runeLenAt(str, i) + start += runeLenAt(str, start) if captureCount > 0: dealloc(capture) -- cgit 1.4.1-2-gfad0