aboutsummaryrefslogtreecommitdiffstats
path: root/src/expressions.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-27 19:03:11 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-27 19:03:11 +0400
commitb9baa0d48da843d73926fff54b36846a778d9474 (patch)
tree7904fe31f4d6d9aa9cba1776c7ea3153933b0301 /src/expressions.c
parentc1723b27e05334a43d1443a125023ba556f54117 (diff)
downloadrspamd-b9baa0d48da843d73926fff54b36846a778d9474.tar.gz
rspamd-b9baa0d48da843d73926fff54b36846a778d9474.zip
* Add expression parser utility
* Temporaly switch off expression optimizer as it should be reworked
Diffstat (limited to 'src/expressions.c')
-rw-r--r--src/expressions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expressions.c b/src/expressions.c
index e656cc433..200c1abd3 100644
--- a/src/expressions.c
+++ b/src/expressions.c
@@ -382,7 +382,7 @@ parse_expression (memory_pool_t *pool, char *line)
case READ_REGEXP_FLAGS:
if (!is_regexp_flag (*p) || *(p + 1) == '\0') {
if (c != p) {
- if (is_regexp_flag (*p) && *(p + 1) == '\0') {
+ if ((is_regexp_flag (*p) || *p == '/') && *(p + 1) == '\0') {
p ++;
}
str = memory_pool_alloc (pool, p - c + 2);