diff options
Diffstat (limited to 'lib/pure/re.nim')
-rwxr-xr-x | lib/pure/re.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/re.nim b/lib/pure/re.nim index 09a38440d..953f9c744 100755 --- a/lib/pure/re.nim +++ b/lib/pure/re.nim @@ -127,13 +127,13 @@ template `=~` *(s: string, pattern: TRegEx): expr = ## ## if line =~ re"\s*(\w+)\s*\=\s*(\w+)": ## # matches a key=value pair: - ## echo("Key: ", matches[1]) - ## echo("Value: ", matches[2]) + ## echo("Key: ", matches[0]) + ## echo("Value: ", matches[1]) ## elif line =~ re"\s*(\#.*)": ## # matches a comment ## # note that the implicit ``matches`` array is different from the ## # ``matches`` array of the first branch - ## echo("comment: ", matches[1]) + ## echo("comment: ", matches[0]) ## else: ## echo("syntax error") ## |