From aee43d976ba1b6eb13175b5a7c9bda1695ff840b Mon Sep 17 00:00:00 2001 From: Flaviu Tamas Date: Wed, 14 Jan 2015 20:12:53 -0500 Subject: [PATCH] Remove unnecessary options --- src/nre.nim | 2 -- test/init.nim | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/nre.nim b/src/nre.nim index 613b3897ff..ce51b6cd5d 100644 --- a/src/nre.nim +++ b/src/nre.nim @@ -177,7 +177,6 @@ proc asSeq*(pattern: Captures, default: string = nil): seq[string] = let Options: Table[string, int] = { "8" : pcre.UTF8, "9" : pcre.NEVER_UTF, - "?" : pcre.NO_UTF8_CHECK, "A" : pcre.ANCHORED, # "C" : pcre.AUTO_CALLOUT, unsuported XXX "E" : pcre.DOLLAR_ENDONLY, @@ -185,7 +184,6 @@ let Options: Table[string, int] = { "i" : pcre.CASELESS, "m" : pcre.MULTILINE, "N" : pcre.NO_AUTO_CAPTURE, - "O" : pcre.NO_AUTO_POSSESS, "s" : pcre.DOTALL, "U" : pcre.UNGREEDY, "u" : pcre.UTF8, diff --git a/test/init.nim b/test/init.nim index eddcd6aca5..9bf7c3c42d 100644 --- a/test/init.nim +++ b/test/init.nim @@ -9,7 +9,7 @@ suite "Test NRE initialization": test "correct options": expect(SyntaxError): # ValueError would be bad discard initRegex("[0-9]+", - "89?AEfimNOsUWXxY") + "89AEfimNsUWXxY") test "incorrect options": expect(KeyError): discard initRegex("[0-9]+", "a")