Browse Source

Fix Bottle regex path url

Guénaël Muller 6 years ago
parent
commit
a8a0d3ca22
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hapic/ext/bottle/context.py

+ 1 - 1
hapic/ext/bottle/context.py View File

18
 from hapic.processor import ProcessValidationError
18
 from hapic.processor import ProcessValidationError
19
 
19
 
20
 # Bottle regular expression to locate url parameters
20
 # Bottle regular expression to locate url parameters
21
-BOTTLE_RE_PATH_URL = re.compile(r'<(?:[^:<>]+:)?([^<>]+)>')
21
+BOTTLE_RE_PATH_URL = re.compile(r'<([^:<>]+)(?::[^<>]+)?>')
22
 
22
 
23
 
23
 
24
 class BottleContext(ContextInterface):
24
 class BottleContext(ContextInterface):