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 2022/03/19 14:21:53 UTC
[incubator-ponymail-foal] 01/02: if month doesn't follow YYYY-MM format, assume it's a search instead.
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-foal.git
commit 7deccb31dc0fdfe9fcabec89826a18fa352933f0
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sat Mar 19 15:18:56 2022 +0100
if month doesn't follow YYYY-MM format, assume it's a search instead.
---
webui/js/source/primer.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/webui/js/source/primer.js b/webui/js/source/primer.js
index b47024a..ad8bb8d 100644
--- a/webui/js/source/primer.js
+++ b/webui/js/source/primer.js
@@ -128,7 +128,7 @@ function parseURL(state) {
}
}
// Are we initiating a search?
- if (query) {
+ if (query || (month && !month.match(/^\d\d\d\d-\d+$/))) { // single-month isn't a search, but any other date marker is
state.search = true;
state.query = decodeURIComponent(query);
state.date = month;