You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2019/07/06 08:44:14 UTC
[incubator-ponymail] branch master updated: Fix wildcard list search
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git
The following commit(s) were added to refs/heads/master by this push:
new 04d2894 Fix wildcard list search
04d2894 is described below
commit 04d2894030e8c6e5557e5b553b259b4fccbe3d2b
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sat Jul 6 10:44:10 2019 +0200
Fix wildcard list search
- Lucene regexp is _always_ anchored, so describing anchors actually break the search
- Switch to using list_raw, as that isn't tokenized (for instance dev.foo-bar.example.org is split into two in 'list' but stays as one in 'list_raw')
---
site/api/stats.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/site/api/stats.lua b/site/api/stats.lua
index 3e6eb65..3e82bdb 100644
--- a/site/api/stats.lua
+++ b/site/api/stats.lua
@@ -256,7 +256,7 @@ function handle(r)
wc = true
sterm = {
regexp = {
- list = "^[^.]+." .. get.domain .. "$"
+ list_raw = "\\<[^.]+\\." .. get.domain .. "\\>"
}
}
end