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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user