diff options
-rw-r--r-- | src/expressions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expressions.c b/src/expressions.c index f28f38efb..447bdcbc2 100644 --- a/src/expressions.c +++ b/src/expressions.c @@ -704,7 +704,8 @@ parse_regexp (memory_pool_t * pool, char *line, gboolean raw_mode) } } result->regexp = g_regex_new (begin, regexp_flags, 0, &err); - result->regexp_text = memory_pool_strdup (pool, begin); + *end = '/'; + result->regexp_text = memory_pool_strdup (pool, line); memory_pool_add_destructor (pool, (pool_destruct_func) g_regex_unref, (void *)result->regexp); if (result->regexp == NULL || err != NULL) { |