diff options
Diffstat (limited to 'tests/reject/tinvalidnewseq.nim')
-rwxr-xr-x | tests/reject/tinvalidnewseq.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/reject/tinvalidnewseq.nim b/tests/reject/tinvalidnewseq.nim index e2a3736c3..ccd327284 100755 --- a/tests/reject/tinvalidnewseq.nim +++ b/tests/reject/tinvalidnewseq.nim @@ -1,4 +1,4 @@ -import regexprs, strutils +import re, strutils type TURL = tuple[protocol, subdomain, domain, port: string, path: seq[string]] @@ -8,7 +8,7 @@ proc parseURL(url: string): TURL = var pattern: string = r"([a-zA-Z]+://)?(\w+?\.)?(\w+)(\.\w+)(:[0-9]+)?(/.+)?" var m: array[0..6, string] #Array with the matches newSeq(m, 7) #ERROR - discard regexprs.match(url, pattern, m) + discard regexprs.match(url, re(pattern), m) result = (protocol: m[1], subdomain: m[2], domain: m[3] & m[4], port: m[5], path: m[6].split('/')) |