-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(generate): dayjs
default strict mode
#534
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
dayjs.parse
default strict modedayjs
default strict mode
@@ -162,7 +162,7 @@ const generateConfig: GenerateConfig<Dayjs> = { | |||
parseNoMatchNotice(); | |||
return null; | |||
} | |||
const date = dayjs(formatText, format).locale(localeStr); | |||
const date = dayjs(formatText, format, true).locale(localeStr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加个测试用例哈~
Codecov Report
@@ Coverage Diff @@
## master #534 +/- ##
=======================================
Coverage 99.32% 99.32%
=======================================
Files 49 49
Lines 2236 2236
Branches 652 652
=======================================
Hits 2221 2221
Misses 13 13
Partials 2 2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
#482
ant-design/ant-design#38839