1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 16:53:14 +02:00

core: use extended regex in filters (patch #7616)

This commit is contained in:
Sebastien Helleu
2012-01-06 13:24:16 +01:00
parent b20888ec74
commit 80d1a52304
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -7,6 +7,7 @@ v0.3.7-dev, 2012-01-06
Version 0.3.7 (under dev!)
--------------------------
* core: use extended regex in filters (patch #7616)
* core: save current mouse state in option weechat.look.mouse (set option when
mouse state is changed with command /mouse)
* core: add type "hashtable" for hdata
+2 -2
View File
@@ -285,7 +285,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);
@@ -298,7 +298,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);