Use declaredInScope instead of definedInScope
This commit is contained in:
parent
2647423502
commit
456aa7fdfe
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ template optRe{re(x)}(x: string{lit}): Regex =
|
|||
g
|
||||
|
||||
template `=~`(s: string, pattern: Regex): bool =
|
||||
when not definedInScope(matches):
|
||||
when not declaredInScope(matches):
|
||||
var matches {.inject.}: array[maxSubPatterns, string]
|
||||
match(s, pattern, matches)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue