Skip to content

Commit 56b6b91

Browse files
authored
Strip leading and trailing whitespace
Fixes peakwinter#46
1 parent c284cdb commit 56b6b91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nginx.py

+1
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ def loads(data, conf=True):
418418
f = Conf() if conf else []
419419
lopen = []
420420
index = 0
421+
data = data.strip()
421422

422423
while True:
423424
m = re.compile(r'^\s*events\s*{').search(data[index:])

0 commit comments

Comments
 (0)