From 3d972f11e45ea24dfc13501eb0e57f046f94f71f Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Wed, 30 Jun 2010 11:48:37 -0400 Subject: [PATCH] Skip '+' sign in adblock rules --- extensions/adblock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/adblock.c b/extensions/adblock.c index 4623d595..372d13ad 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -1059,6 +1059,8 @@ adblock_fixup_regexp (gchar* src) case '^': g_string_append (str, ""); break; + case '+': + break; default: g_string_append_printf (str,"%c", *src); break; @@ -1407,6 +1409,7 @@ test_adblock_parse (void) g_assert (!adblock_parse_line ("##")); g_assert (!adblock_parse_line ("[")); + g_assert_cmpstr (adblock_parse_line ("+advert/"), ==, "advert/"); g_assert_cmpstr (adblock_parse_line ("*foo"), ==, "foo"); g_assert_cmpstr (adblock_parse_line ("f*oo"), ==, "f.*oo"); g_assert_cmpstr (adblock_parse_line ("?foo"), ==, "\\?foo"); -- 2.39.5