diff options
Diffstat (limited to 'lib/pure/regexprs.nim')
-rwxr-xr-x | lib/pure/regexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/regexprs.nim b/lib/pure/regexprs.nim index fb9601c18..3524aac0a 100755 --- a/lib/pure/regexprs.nim +++ b/lib/pure/regexprs.nim @@ -84,7 +84,7 @@ proc matchOrFind(s: string, pattern: PPcre, matches: var openarray[string], var a = rawMatches[i * 2] b = rawMatches[i * 2 + 1] - if a >= 0'i32: matches[i] = copy(s, a, int(b)-1) + if a >= 0'i32: matches[i] = substr(s, a, int(b)-1) else: matches[i] = "" return res |