fixes a critical 'nim secret' regression

(cherry picked from commit 43940294c5)
This commit is contained in:
Andreas Rumpf
2019-07-17 15:10:02 +02:00
committed by narimiran
parent e043a92501
commit 6abbef3eb9

View File

@@ -97,7 +97,7 @@ proc continueLine(line: string, inTripleString: bool): bool {.inline.} =
proc countTriples(s: string): int =
var i = 0
while i < s.len:
while i+2 < s.len:
if s[i] == '"' and s[i+1] == '"' and s[i+2] == '"':
inc result
inc i, 2