You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2021/09/26 23:46:03 UTC
[incubator-ponymail-foal] branch master updated: Only want gte/lte
here
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 3de40df Only want gte/lte here
new b32499e Merge branch 'master' of https://github.com/apache/incubator-ponymail-foal
3de40df is described below
commit 3de40df7f2f35d6f137e3edd9b5fbdb59f5c2e4f
Author: Sebb <se...@apache.org>
AuthorDate: Mon Sep 27 00:45:00 2021 +0100
Only want gte/lte here
---
server/plugins/defuzzer.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/plugins/defuzzer.py b/server/plugins/defuzzer.py
index 080c9dd..eba321e 100644
--- a/server/plugins/defuzzer.py
+++ b/server/plugins/defuzzer.py
@@ -50,7 +50,7 @@ def defuzz(formdata: dict, nodate: bool = False, list_override: typing.Optional[
# Advanced date formatting
elif "d" in formdata:
# The more/less than N days/weeks/months/years ago
- m = re.match(r"^([a-z]+)=([0-9]+[Mwyd])$", formdata["d"])
+ m = re.match(r"^(lte|gte)=([0-9]+[Mwyd])$", formdata["d"])
if m:
t = m.group(1)
r = m.group(2)