summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bb3db39)
raw | patch | inline | side by side (parent: bb3db39)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 23 Aug 2010 16:56:02 +0000 (18:56 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 23 Aug 2010 17:07:22 +0000 (19:07 +0200) |
The regcomp() flag REG_NEWLINE is required for that, even though regex(7)
might make people think otherwise.
might make people think otherwise.
src/utils_match.c | patch | blob | history |
diff --git a/src/utils_match.c b/src/utils_match.c
index e4240eab607c497f8ff61444cc2c953e1e50b7d6..2aaeb963bc5451cb3f7c403e0edd75353be53701 100644 (file)
--- a/src/utils_match.c
+++ b/src/utils_match.c
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);