Skip to content

Commit 68641c4

Browse files
author
Marvel Mathew
committed
Lowercase text before processing
1 parent f8ce556 commit 68641c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Adapters/Storage/Mongo/MongoTransform.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,8 @@ function transformTopLevelAtom(atom, field) {
534534
}
535535

536536
function relativeTimeToDate(text, now = new Date()) {
537+
text = text.toLowerCase();
538+
537539
let parts = text.split(' ');
538540
if (!parts.length) {
539541
return { status: 'error', info: 'Not a time string' };

0 commit comments

Comments
 (0)