diff options
Diffstat (limited to 'tests/stdlib/tpegs.nim')
-rw-r--r-- | tests/stdlib/tpegs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stdlib/tpegs.nim b/tests/stdlib/tpegs.nim index 3fe964d82..ec839e288 100644 --- a/tests/stdlib/tpegs.nim +++ b/tests/stdlib/tpegs.nim @@ -764,7 +764,7 @@ proc match*(s: string, pattern: TPeg, matches: var openarray[string], ## returned. var c: TCaptures c.origStart = start - result = rawMatch(s, pattern, start, c) == len(s) -start + result = rawMatch(s, pattern, start, c) == len(s)-start if result: for i in 0..c.ml-1: matches[i] = substr(s, c.matches[i][0], c.matches[i][1]) |