commit b9cac3a190df07bcc0da7aa8318983f8e061f7c0
parent 2ab57e77995749b6c9a5b374128ba0601bfa1cbe
Author: sin <sin@2f30.org>
Date: Tue, 5 May 2015 18:45:35 +0100
Make setfilter() regexes case-insensitive
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/noice.c b/noice.c
@@ -211,7 +211,7 @@ setfilter(regex_t *regex, char *filter)
char *errbuf;
int r;
- r = regcomp(regex, filter, REG_NOSUB | REG_EXTENDED);
+ r = regcomp(regex, filter, REG_NOSUB | REG_EXTENDED | REG_ICASE);
if (r != 0) {
errbuf = xmalloc(COLS * sizeof(char));
regerror(r, regex, errbuf, COLS * sizeof(char));