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

tools: allow one whitespace between route and name, kamailio parser accept it as well

Henning Westerholt преди 6 години
родител
ревизия
5eb2eca034
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      misc/tools/route_graph/route_graph.py

+ 1 - 1
misc/tools/route_graph/route_graph.py

@@ -32,7 +32,7 @@ max_depth = 120
 debug = 0
 
 re_main_route = re.compile("^([a-z]+_)*route[\s\t]*(?![\(\)])[\s\t]*\{?", re.I)
-re_def_route = re.compile("^([a-z]+_)*route(\[\"?([A-Za-z0-9-_:]+)\"?\])+[\s\t]*\{?", re.I)
+re_def_route = re.compile("^([a-z]+_)*route ?(\[\"?([A-Za-z0-9-_:]+)\"?\])+[\s\t]*\{?", re.I)
 re_call_route = re.compile("^(.*\([\s\t!]*)?route\(\"?([A-Za-z0-9-_]+)\"?\)", re.I)
 routes = {}
 f_routes = {}