You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that this is an issue rather than a question.
Bug report
Current permalink generation from date frontmatter field is using a simple split on - characters. When using other formats of date (that is able to be parsed by Date), the permalink fails to generate. I noticed that this change was due to a flaw in the Date API (#2181). If so, please use a date library (e.g. dayjs) instead of rolling an error-prone parser.
Bug report
Current permalink generation from
date
frontmatter field is using a simple split on-
characters. When using other formats of date (that is able to be parsed byDate
), the permalink fails to generate. I noticed that this change was due to a flaw in theDate
API (#2181). If so, please use a date library (e.g.dayjs
) instead of rolling an error-prone parser.The same problem is present in
vuepress-next
.Steps to reproduce
Put this in a file:
What is expected?
Page is at
/2021/05/06/...
.What is actually happening?
Page is at
/NaN/NaN/NaN/...
.Other relevant information
npx vuepress info
in my VuePress project:The text was updated successfully, but these errors were encountered: