We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7466733 commit 3b03974Copy full SHA for 3b03974
packages/cubejs-api-gateway/src/dateParser.js
@@ -65,7 +65,7 @@ export function dateParser(dateString, timezone, now = new Date()) {
65
moment.tz(timezone).endOf('day').add(1, 'day')
66
];
67
} else if (dateString.match(/^from (.*) to (.*)$/)) {
68
- const [, from, to] = dateString.match(/^from (.*) to (.*)$/);
+ const [, from, to] = dateString.match(/^from\s{1,3}(.{0,50})\s{1,3}to\s{1,3}(.{0,50})$/);
69
70
const current = moment(now).tz(timezone);
71
const fromResults = parse(from, new Date(current.format(moment.HTML5_FMT.DATETIME_LOCAL_MS)));
0 commit comments