make nre compile again
This commit is contained in:
parent
9e6656d562
commit
22670aad84
1 changed files with 4 additions and 4 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
from pcre import nil
|
from pcre import nil
|
||||||
import nre.private.util
|
import nre.private.util
|
||||||
import tables
|
import tables
|
||||||
from strutils import toLower, `%`
|
from strutils import `%`
|
||||||
from math import ceil
|
from math import ceil
|
||||||
import options
|
import options
|
||||||
from unicode import runeLenAt
|
from unicode import runeLenAt
|
||||||
|
|
@ -326,15 +326,15 @@ proc `$`*(pattern: RegexMatch): string =
|
||||||
|
|
||||||
proc `==`*(a, b: Regex): bool =
|
proc `==`*(a, b: Regex): bool =
|
||||||
if not a.isNil and not b.isNil:
|
if not a.isNil and not b.isNil:
|
||||||
return a.pattern == b.pattern and
|
return a.pattern == b.pattern and
|
||||||
a.pcreObj == b.pcreObj and
|
a.pcreObj == b.pcreObj and
|
||||||
a.pcreExtra == b.pcreExtra
|
a.pcreExtra == b.pcreExtra
|
||||||
else:
|
else:
|
||||||
return system.`==`(a, b)
|
return system.`==`(a, b)
|
||||||
|
|
||||||
proc `==`*(a, b: RegexMatch): bool =
|
proc `==`*(a, b: RegexMatch): bool =
|
||||||
return a.pattern == b.pattern and
|
return a.pattern == b.pattern and
|
||||||
a.str == b.str
|
a.str == b.str
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# Creation & Destruction {{{
|
# Creation & Destruction {{{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue