Disable extended default
This commit is contained in:
parent
85a7be9cf0
commit
a80617fd4c
1 changed files with 2 additions and 2 deletions
|
|
@ -261,7 +261,7 @@ proc getNameToNumberTable(pattern: Regex): Table[string, int] =
|
||||||
|
|
||||||
result[name] = num
|
result[name] = num
|
||||||
|
|
||||||
proc initRegex*(pattern: string, options = "Sx"): Regex =
|
proc initRegex*(pattern: string, options = "S"): Regex =
|
||||||
new(result, destroyRegex)
|
new(result, destroyRegex)
|
||||||
result.pattern = pattern
|
result.pattern = pattern
|
||||||
|
|
||||||
|
|
@ -286,7 +286,7 @@ proc initRegex*(pattern: string, options = "Sx"): Regex =
|
||||||
|
|
||||||
result.captureNameToId = result.getNameToNumberTable()
|
result.captureNameToId = result.getNameToNumberTable()
|
||||||
|
|
||||||
proc re*(pattern: string, options = "Sx"): Regex = initRegex(pattern, options)
|
proc re*(pattern: string, options = "S"): Regex = initRegex(pattern, options)
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
proc matchImpl(str: string, pattern: Regex, start, endpos: int, flags: int): RegexMatch =
|
proc matchImpl(str: string, pattern: Regex, start, endpos: int, flags: int): RegexMatch =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue