summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/pure/strutils.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/strutils.nim b/lib/pure/strutils.nim
index 5fedfa57e..1285f0e1c 100644
--- a/lib/pure/strutils.nim
+++ b/lib/pure/strutils.nim
@@ -1730,7 +1730,7 @@ proc multiReplace*(s: string, replacements: varargs[(string, string)]): string {
       # Assume most chars in s are not candidates for any replacement operation
       if s[i] in fastChk:
         for sub, by in replacements.items:
-          if sub.len > 0 and s.continuesWith(sub[0], i):
+          if sub.len > 0 and s.continuesWith(sub, i):
             add result, by
             inc(i, sub.len)
             break sIteration
backend; JS improvements (but doesn't work yet)' href='/ahoang/Nim/commit/tests/ecmas.nim?h=devel&id=ee1bcb6414a50642811632a92a803840c1c67036'>ee1bcb641 ^
972c51086 ^

93b3c03db ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24