Skip to content

Commit

Permalink
Strip leading and trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tobycm authored Oct 18, 2022
1 parent c284cdb commit 56b6b91
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nginx.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ def loads(data, conf=True):
f = Conf() if conf else []
lopen = []
index = 0
data = data.strip()

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

0 comments on commit 56b6b91

Please sign in to comment.