[epiphany/gnome-3-8] uri-tester: Compile regex in JavaScript compatibility mode



commit 92155fc2fa395270f01ab9cc5ab600432a0c88d0
Author: Andres Gomez <agomez igalia com>
Date:   Wed Nov 27 12:48:22 2013 +0200

    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
    https://easylist-downloads.adblockplus.org/easylist.txt .
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719399

 embed/uri-tester.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/uri-tester.c b/embed/uri-tester.c
index 2dc444e..2cf928b 100644
--- a/embed/uri-tester.c
+++ b/embed/uri-tester.c
@@ -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,
                        G_REGEX_MATCH_NOTEMPTY, &error);
   if (error)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]