Skip to content

Commit 9fdf249

Browse files
fulderSGamoff
andauthored
Update nginx.py
remove odd dot character Co-Authored-By: SGamoff <sgamof@gmail.com>
1 parent c0656b9 commit 9fdf249

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
@@ -436,7 +436,7 @@ def loads(data, conf=True):
436436
index += m.end()
437437
continue
438438

439-
m = re.compile(r'^\s*location\s*([^;].*?)\s*{', re.S).search(data[index:])
439+
m = re.compile(r'^\s*location\s*([^;]*?)\s*{', re.S).search(data[index:])
440440
if m:
441441
l = Location(m.group(1))
442442
lopen.insert(0, l)

0 commit comments

Comments
 (0)