Explorar el Código

Avoid invalid regex to be compiled

Resolve #17
Markus Hofbauer hace 5 años
padre
commit
f2cb26a38b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -208,7 +208,7 @@ if __name__ == "__main__":
     # TC Variables
     args = parse_arguments()
 
-    pattern = re.compile(args.regex)
+    pattern = re.compile(args.regex) if args.regex else args.regex
     dev_list = args.dev
 
     # Flask Variable