We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a71ee commit 30b136dCopy full SHA for 30b136d
nginx.py
@@ -515,7 +515,7 @@ def loads(data, conf=True):
515
index += m.end()
516
continue
517
518
- if ";" not in data[index:] and index+1 != len(data):
+ if ";" not in data[index:] and "}" in data[index:]:
519
# If there is still something to parse, expect ';' otherwise
520
# the Key regexp can get stuck due to regexp catastrophic backtracking
521
raise ParseError("Config syntax, missing ';' at index: {}".format(index))
0 commit comments