aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/regex.nim2
1 files changed, 1 insertions, 1 deletions
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)