dayjs
dayjs copied to clipboard
new Dayjs with string in Korean that cause invalid date
Describe the bug korean using this format "YYYY.MM.DD." when I run this , dayjs("2022.06.20.") , it returns invalid date.
Maybe this line's regex should support more format? https://github.com/iamkun/dayjs/blob/74e82b9da5ec8b90361fc27ac7c8b63faf354502/src/index.js#L66
Expected behavior new dayjs() returns a valid date.
Information
- Day.js Version any
- Browser Edge 18
@cjz9032 What is the value you received and what is the expected value you think?