Remove DUPNAMES option

It makes the rest of the implementation more complicated and is confusing
anyway. The user expects a 1:1 mapping between a match and a name
This commit is contained in:
Flaviu Tamas 2015-01-10 08:16:09 -05:00
commit bfba4b9983

View file

@ -9,7 +9,7 @@ suite "Test NRE initialization":
test "correct options":
expect(SyntaxError): # ValueError would be bad
discard initRegex("[0-9]+",
"89?AEfiJmNOsUWXxY<any><anycrlf><cr><crlf><lf><bsr_anycrlf><bsr_unicode><js>")
"89?AEfimNOsUWXxY<any><anycrlf><cr><crlf><lf><bsr_anycrlf><bsr_unicode><js>")
test "incorrect options":
expect(KeyError): discard initRegex("[0-9]+", "a")