summaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil')
-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)) {