makes tests green
This commit is contained in:
parent
46f1f41cc9
commit
0d4e52c648
10 changed files with 36 additions and 32 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue