Commit 8fb16adc authored by Andres Gomez's avatar Andres Gomez
Browse files

uri-tester: Compile regex in JavaScript compatibility mode

AddBlock regexes now are compiled in JavaScript compatibility mode to
avoid the errors happening from using the patterns from .
parent 3101ac09
......@@ -476,7 +476,7 @@ uri_tester_compile_regexp (UriTester *tester,
len = gpatt->len;
/* TODO: Play with optimization flags */
regex = g_regex_new (patt, G_REGEX_OPTIMIZE,
regex = g_regex_new (patt, G_REGEX_OPTIMIZE | G_REGEX_JAVASCRIPT_COMPAT,
if (error)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment