⚡ Optimize regexp pattern in get_path_param_names (#1243)

This commit is contained in:
Kazantcev Andrey authored and GitHub committed 2020-06-12 21:59:32 +02:00
1 parent 535247ffc4
commit 434d32b891
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ def get_model_definitions(
def get_path_param_names(path: str) -> Set[str]:
return {item.strip("{}") for item in re.findall("{[^}]*}", path)}
return set(re.findall("{(.*?)}", path))
def create_response_field(