X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_match.c;h=062bcfe37fd152851eb11eb03464daabe0b53ae2;hb=0beeec00eeeabf9f1ff30d55d7b8c4032f6f24b7;hp=4d4b57d08051b31e91dceb0a8bf43a4e67695dfe;hpb=b53110ef99e3d6a5e2f8e79b8f068cfe96a1accb;p=collectd.git diff --git a/src/utils_match.c b/src/utils_match.c index 4d4b57d0..062bcfe3 100644 --- a/src/utils_match.c +++ b/src/utils_match.c @@ -228,7 +228,7 @@ cu_match_t *match_create_callback (const char *regex, const char *excluderegex, return (NULL); memset (obj, '\0', sizeof (cu_match_t)); - status = regcomp (&obj->regex, regex, REG_EXTENDED); + status = regcomp (&obj->regex, regex, REG_EXTENDED | REG_NEWLINE); if (status != 0) { ERROR ("Compiling the regular expression \"%s\" failed.", regex);