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

 
 

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

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

Add a New Comment Rich Markup
   

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>
Group administrator
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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-4448.
    Corresponding source code