makes tests green

This commit is contained in:
Andreas Rumpf
2016-01-15 14:44:54 +01:00
parent 46f1f41cc9
commit 0d4e52c648
10 changed files with 36 additions and 32 deletions

View File

@@ -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])