mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Error if noderange includes too many )
By default, pyparsing consumes only as much of the input as matches the grammar. Tell it to consume all of the noderange and error if there's more string than matches our grammar.
This commit is contained in:
parent
269300119a
commit
03a75ec67d
@ -106,7 +106,7 @@ class NodeRange(object):
|
||||
self.endpage = None
|
||||
self.cfm = config
|
||||
try:
|
||||
elements = _parser.parseString("(" + noderange + ")").asList()[0]
|
||||
elements = _parser.parseString("(" + noderange + ")", parseAll=True).asList()[0]
|
||||
except pp.ParseException as pe:
|
||||
raise Exception("Invalid syntax")
|
||||
if noderange[0] in ('<', '>'):
|
||||
|
Loading…
Reference in New Issue
Block a user