Browse code

fix regexp somewhat, this should be reviewed again

Hanno Böck authored on17/11/2017 20:04:57
Showing2 changed files
... ...
@@ -132,7 +132,7 @@ for sect in config.sections():
132 132
     item['variable'] = []
133 133
     for var in config.get(sect, 'variable').split(","):
134 134
         item['variable'].append(re.compile(re.escape(var) +
135
-                                r"[^0-9.\n\r]*[.]*([0-9.]*[0-9])[^0-9.]"))
135
+                                r"[^0-9\n\r]*[.]*([0-9.]*[0-9])[^0-9.]"))
136 136
 
137 137
     # optional options
138 138
     if config.has_option(sect, 'extra_match'):
... ...
@@ -396,7 +396,7 @@ subdir=0
396 396
 [Gitlist]
397 397
 url=http://gitlist.org/
398 398
 file=footer.twig
399
-variable="Powered by"
399
+variable=Powered by
400 400
 safe=0.5.0
401 401
 latest=0.6.0
402 402
 vuln=CVE-2014-4511