diff options
author | Araq <rumpf_a@web.de> | 2015-10-13 14:10:33 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-10-13 14:10:33 +0200 |
commit | 8be9e4640320ddc4c11cf433fb6e232a743a9700 (patch) | |
tree | 84b223decfbfe5ed5104682dd4fd62a4f274398a /lib/impure | |
parent | 2fda95a4d630aa8b293f16e4f21471f7ee8e743a (diff) | |
download | Nim-8be9e4640320ddc4c11cf433fb6e232a743a9700.tar.gz |
udpated the compiler and tester to use getOrDefault
Diffstat (limited to 'lib/impure')
-rw-r--r-- | lib/impure/re.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/impure/re.nim b/lib/impure/re.nim index 30081bb19..60bb6c77f 100644 --- a/lib/impure/re.nim +++ b/lib/impure/re.nim @@ -28,6 +28,8 @@ import pcre, strutils, rtarrays +{.deprecated.} + const MaxSubpatterns* = 20 ## defines the maximum number of subpatterns that can be captured. @@ -46,7 +48,7 @@ type h: ptr Pcre e: ptr ExtraData - Regex* {.deprecated.} = ref RegexDesc ## a compiled regular expression + Regex* = ref RegexDesc ## a compiled regular expression RegexError* = object of ValueError ## is raised if the pattern is no valid regular expression. |