summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-02-26 21:12:25 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-02-26 21:12:25 +0100
commitb84f6b5a1ba937e4cd312d0d62c8007958613678 (patch)
tree011a9d9ea516383e7ec2ec3ad511b251b0f57794 /src
parentcecb546c2498dddb31865d8fab8c475324c0ded8 (diff)
downloadweechat-b84f6b5a1ba937e4cd312d0d62c8007958613678.zip
api: fix function string_mask_to_regex: escape all special chars used in regex (bug #38398)
Diffstat (limited to 'src')
-rw-r--r--src/core/wee-string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c
index 5add7c1fb..4b3b255c7 100644
--- a/src/core/wee-string.c
+++ b/src/core/wee-string.c
@@ -730,7 +730,7 @@ string_mask_to_regex (const char *mask)
char *result;
const char *ptr_mask;
int index_result;
- char *regex_special_char = ".[]{}()?+";
+ char *regex_special_char = ".[]{}()?+|^$\\";
if (!mask)
return NULL;