Преглед на файлове

Fix Bottle regex path url

Guénaël Muller преди 7 години
родител
ревизия
a8a0d3ca22
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      hapic/ext/bottle/context.py

+ 1 - 1
hapic/ext/bottle/context.py Целия файл

@@ -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):