File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -436,35 +436,35 @@ def loads(data, conf=True):
436
436
index += m .end ()
437
437
continue
438
438
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 :])
440
440
if m :
441
441
l = Location (m .group (1 ))
442
442
lopen .insert (0 , l )
443
443
index += m .end ()
444
444
continue
445
445
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 :])
447
447
if m :
448
448
ifs = If (m .group (1 ))
449
449
lopen .insert (0 , ifs )
450
450
index += m .end ()
451
451
continue
452
452
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 :])
454
454
if m :
455
455
u = Upstream (m .group (1 ))
456
456
lopen .insert (0 , u )
457
457
index += m .end ()
458
458
continue
459
459
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 :])
461
461
if m :
462
462
g = Geo (m .group (1 ))
463
463
lopen .insert (0 , g )
464
464
index += m .end ()
465
465
continue
466
466
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 :])
468
468
if m :
469
469
g = Map (m .group (1 ))
470
470
lopen .insert (0 , g )
You can’t perform that action at this time.
0 commit comments