diff options
Diffstat (limited to 'src/libserver/re_cache.c')
-rw-r--r-- | src/libserver/re_cache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c index bd207573b..73082bb2d 100644 --- a/src/libserver/re_cache.c +++ b/src/libserver/re_cache.c @@ -1979,6 +1979,10 @@ rspamd_re_cache_compile_timer_cb (EV_P_ ev_timer *w, int revents ) hs_flags[i] |= HS_FLAG_SINGLEMATCH; } + if (re_flags & RSPAMD_REGEXP_FLAG_LEFTMOST) { + hs_flags[i] |= HS_FLAG_SOM_LEFTMOST; + } + gchar *pat = rspamd_re_cache_hs_pattern_from_pcre (re); if (hs_compile (pat, |