aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-31 13:46:57 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-03-31 13:46:57 +0100
commit4704ee4297fc4f5510421dea08965a83efa22397 (patch)
tree34eabcc692638c2c51346605d151aca5d03274ae /src/libutil/regexp.c
parent8a17010c05fefde3b5775586fa9b373549083cd3 (diff)
downloadrspamd-4704ee4297fc4f5510421dea08965a83efa22397.tar.gz
rspamd-4704ee4297fc4f5510421dea08965a83efa22397.zip
Add some more SA and perl compat for regexps.
Diffstat (limited to 'src/libutil/regexp.c')
-rw-r--r--src/libutil/regexp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/regexp.c b/src/libutil/regexp.c
index a83660e8e..61ddc908a 100644
--- a/src/libutil/regexp.c
+++ b/src/libutil/regexp.c
@@ -135,6 +135,12 @@ rspamd_regexp_new (const gchar *pattern, const gchar *flags,
else if (*start == 'm') {
start ++;
sep = *start;
+
+ /* Paired braces */
+ if (sep == '{') {
+ sep = '}';
+ }
+
rspamd_flags |= RSPAMD_REGEXP_FLAG_FULL_MATCH;
}
if (sep == '\0' || g_ascii_isalnum (sep)) {