Explorar el Código

Fix Bottle regex path url

Guénaël Muller hace 7 años
padre
commit
a8a0d3ca22
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hapic/ext/bottle/context.py

+ 1 - 1
hapic/ext/bottle/context.py Ver fichero

@@ -18,7 +18,7 @@ from hapic.processor import RequestParameters
18 18
 from hapic.processor import ProcessValidationError
19 19
 
20 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 24
 class BottleContext(ContextInterface):