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



commit 0ed80520c7cbc8c11b0f01329516a6e368c692c8
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 9fb8388..5c4d470 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]