mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 12:07:51 +00:00
Use declaredInScope instead of definedInScope
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user