Skip to content

Commit

Permalink
fix: use not localized case function
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimr committed Jul 24, 2022
1 parent 5ae3f33 commit 8908eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export function parse(dateStr, format, options) {
} else if (DATE_FORMAT_TO_STRING[part]) {
const dateIndex = DATE_FORMAT_TO_STRING[part].findIndex((str) => {
return options?.ignoreCase ?
(str.toLocaleLowerCase() === value.toLowerCase()) :
(str.toLowerCase() === value.toLowerCase()) :
(str === value);
});
// eslint-disable-next-line max-depth
Expand Down

0 comments on commit 8908eff

Please sign in to comment.