Skip to content

Commit cb17bd9

Browse files
author
kfang
committed
fix { bug
1 parent bad8432 commit cb17bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def loads(data, conf=True):
419419
s = Server()
420420
lopen.insert(0, s)
421421
if re.match(r'\s*location.*', line):
422-
lpath = re.match(r'\s*location\s*(.*\S+)\s*', line).group(1)
422+
lpath = re.match(r'\s*location\s*(.*\S+)\s*{', line).group(1)
423423
l = Location(lpath)
424424
lopen.insert(0, l)
425425
if re.match(r'\s*if.*({.*)?$', line):

0 commit comments

Comments
 (0)