-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Errors trying to do .match() on a function rather than a string.
vue-datepicker/src/utils/DateUtils.js
Lines 13 to 21 in 928a999
| const getParsableDate = ({ | |
| dateStr, | |
| formatStr, | |
| translation, | |
| currentYear, | |
| time, | |
| }) => { | |
| const splitter = formatStr.match(/-|\/|\s|\./) || ['-'] | |
| const df = formatStr.split(splitter[0]) |
Passing the undocumented parser property results in bypassing this codepath and no longer expecting format to always be a string:
vue-datepicker/src/utils/DateUtils.js
Lines 343 to 345 in 928a999
| if (parser) { | |
| return parseDateWithLibrary(dateStr, format, parser) | |
| } |
Metadata
Metadata
Assignees
Labels
No labels