patchWeeChat - Patches: patch #7616, Enable extended regex's for /filter

 
 

patch #7616: Enable extended regex's for /filter

Submitted by:  Christopher O'Neill <deltafire>
Submitted on:  Sat 17 Sep 2011 06:13:34 PM UTC  
 
Category:  commands Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  Sebastien Helleu <flashcode> Open/Closed:  Closed
IRC nick:  Deltafire

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 06 Jan 2012 02:09:02 PM UTC, comment #1:

Done, and extended regex added for irc commands /ignore and /list.

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Sat 17 Sep 2011 06:13:34 PM UTC, original submission:

---
 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

Christopher O'Neill <deltafire>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Updated the item)
  • -email is unavailable- added by deltafire (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-05 flashcode Open/ClosedOpen => Closed
    2012-01-06 flashcode Categorydisplay => commands
        StatusNone => Done
        Assigned toNone => flashcode

    Back to the top


    Powered by Savane 3.4