diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-04-30 08:53:31 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-30 08:53:31 +0200 |
commit | 5758ebf02c28e1071036d1dc9ae9e1265c6dc28c (patch) | |
tree | 5a39618bbf194607951ab97ecdcf6eb6b439956a /lib/pure/pegs.nim | |
parent | 87f548c5f4027a0faf57acf0878f7c5db382222c (diff) | |
download | Nim-5758ebf02c28e1071036d1dc9ae9e1265c6dc28c.tar.gz |
more fixes for the new string behaviour
Diffstat (limited to 'lib/pure/pegs.nim')
-rw-r--r-- | lib/pure/pegs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/pegs.nim b/lib/pure/pegs.nim index 90a460776..6d415efd0 100644 --- a/lib/pure/pegs.nim +++ b/lib/pure/pegs.nim @@ -606,7 +606,7 @@ proc rawMatch*(s: string, p: Peg, start: int, c: var Captures): int {. a, b: Rune result = start while i < len(p.term): - if i >= s.len: + if result >= s.len: result = -1 break fastRuneAt(p.term, i, a) |