URL:
  <http://savannah.nongnu.org/patch/?7616>

                 Summary: Enable extended regex's for /filter
                 Project: WeeChat
            Submitted by: deltafire
            Submitted on: Sat 17 Sep 2011 06:13:34 PM GMT
                Category: display
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                IRC nick: Deltafire

    _______________________________________________________

Details:

---
 src/gui/gui-filter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gui/gui-filter.c b/src/gui/gui-filter.c
index ae2496e..4f438c5 100644
--- a/src/gui/gui-filter.c
+++ b/src/gui/gui-filter.c
@@ -318,7 +318,7 @@ gui_filter_new (int enabled, const char *name, const char
*buffer_name,
             if (regex1)
             {  
                 if (regcomp (regex1, regex_prefix,
-                             REG_NOSUB | REG_ICASE) != 0)
+                             REG_NOSUB | REG_ICASE | REG_EXTENDED) != 0)
                 {  
                     free (regex_prefix);
                     free (regex1);
@@ -331,7 +331,7 @@ gui_filter_new (int enabled, const char *name, const char
*buffer_name,
         if (regex2)
         {  
             if (regcomp (regex2, pos_regex_message,
-                         REG_NOSUB | REG_ICASE) != 0)
+                         REG_NOSUB | REG_ICASE | REG_EXTENDED) != 0)
             {  
                 if (regex_prefix)
                     free (regex_prefix);
-- 
1.7.6




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7616>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
Weechat-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/weechat-dev

Reply via email to