Skip to content
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

bug-fix: 修复自定义format包含数字提示格式错误的问题 #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LanFly
Copy link

@LanFly LanFly commented Mar 28, 2018

format: 'yyyy-MM-dd 23:59:59'

如上所示,当自定义format中包含其它字符,比如包含数字,指定默认时分秒,会提示格式错误。
原因是生成正则时只考虑了ymd这些正常的格式,而字母数字下划线这些不需要加'\'。
目前我修改了生成正则的函数,以支持这些额外的格式要求。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant