Skip to content

Commit 3db6254

Browse files
committed
Remove non-space char after Container value
1 parent 880b48a commit 3db6254

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

nginx.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -436,35 +436,35 @@ def loads(data, conf=True):
436436
index += m.end()
437437
continue
438438

439-
m = re.compile(r'^\s*location\s*(.*?\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)
443443
index += m.end()
444444
continue
445445

446-
m = re.compile(r'^\s*if\s*(.*?\S+)\s*{', re.S).search(data[index:])
446+
m = re.compile(r'^\s*if\s*(.*?)\s*{', re.S).search(data[index:])
447447
if m:
448448
ifs = If(m.group(1))
449449
lopen.insert(0, ifs)
450450
index += m.end()
451451
continue
452452

453-
m = re.compile(r'^\s*upstream\s*(.*?\S+)\s*{', re.S).search(data[index:])
453+
m = re.compile(r'^\s*upstream\s*(.*?)\s*{', re.S).search(data[index:])
454454
if m:
455455
u = Upstream(m.group(1))
456456
lopen.insert(0, u)
457457
index += m.end()
458458
continue
459459

460-
m = re.compile(r'^\s*geo\s*(.*?\S+)\s*{', re.S).search(data[index:])
460+
m = re.compile(r'^\s*geo\s*(.*?)\s*{', re.S).search(data[index:])
461461
if m:
462462
g = Geo(m.group(1))
463463
lopen.insert(0, g)
464464
index += m.end()
465465
continue
466466

467-
m = re.compile(r'^\s*map\s*(.*?\S+)\s*{', re.S).search(data[index:])
467+
m = re.compile(r'^\s*map\s*(.*?)\s*{', re.S).search(data[index:])
468468
if m:
469469
g = Map(m.group(1))
470470
lopen.insert(0, g)

0 commit comments

Comments
 (0)