Deprecate re
This commit is contained in:
parent
15ef227c48
commit
8caa5cd292
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@
|
||||||
import strutils
|
import strutils
|
||||||
import nre, options
|
import nre, options
|
||||||
|
|
||||||
type Regex = nre.Regex
|
type Regex* = nre.Regex
|
||||||
|
|
||||||
const
|
const
|
||||||
MaxSubpatterns* {.deprecated.} = 1000
|
MaxSubpatterns* {.deprecated.} = 1000
|
||||||
|
|
@ -48,7 +48,7 @@ type
|
||||||
## is raised if the pattern is no valid regular expression.
|
## is raised if the pattern is no valid regular expression.
|
||||||
|
|
||||||
|
|
||||||
proc re*(s: string, flags = {reExtended, reStudy}): Regex =
|
proc re*(s: string, flags = {reExtended, reStudy}): Regex {.deprecated.} =
|
||||||
## Constructor of regular expressions. Note that Nim's
|
## Constructor of regular expressions. Note that Nim's
|
||||||
## extended raw string literals support this syntax ``re"[abc]"`` as
|
## extended raw string literals support this syntax ``re"[abc]"`` as
|
||||||
## a short form for ``re(r"[abc]")``.
|
## a short form for ``re(r"[abc]")``.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue