Skip to content

Commit 2bfaaa3

Browse files
committed
fix: parse dates with strict mode
Signed-off-by: Mats Johansson <extern.mats.johansson@digg.se>
1 parent c0250eb commit 2bfaaa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rulesets/util/DokRulesUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const containsDate = (input: string): boolean => {
2525
return false;
2626
}
2727
const translatedInput = translateMonthsToEnglish(input);
28-
const results = chrono.parseDate(translatedInput);
28+
const results = chrono.strict.parseDate(translatedInput);
2929
if (results != null) {
3030
return true;
3131
} else {

0 commit comments

Comments
 (0)