Skip to content
Snippets Groups Projects
Commit 8332a8018542 authored by Bob Ippolito's avatar Bob Ippolito
Browse files

strict regex correctness, patch from guido

git-svn-id: http://simplejson.googlecode.com/svn/trunk@60 a4795897-2c25-0410-b006-0d3caba88fa1
parent 0a40d9dfbd28
Branches
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@
p.append(subpattern)
self.actions.append(token)
s.groups = len(p)+1 # NOTE(guido): Added to make SRE validation work
p = sre_parse.SubPattern(s, [(BRANCH, (None, p))])
self.scanner = sre_compile.compile(p)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment