dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

new Dayjs with string in Korean that cause invalid date

Open cjz9032 opened this issue 3 years ago • 1 comments

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 avatar Jun 20 '22 08:06 cjz9032

@cjz9032 What is the value you received and what is the expected value you think?

notoriousmango avatar Jun 27 '22 17:06 notoriousmango