mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
fix: 修正"日期"正则, 更符合显示情况
This commit is contained in:
parent
f69ee8628f
commit
9c37d56935
@ -61,8 +61,8 @@ module.exports = [{
|
||||
example: '如: ABC、KD'
|
||||
},
|
||||
{
|
||||
title: '日期,如: 2000-01-01',
|
||||
rule: /^\d{4}(-)\d{1,2}\1\d{1,2}$/,
|
||||
title: '日期, 如: 2000-01-01',
|
||||
rule: /^\d{4}(-)([0-1][0-2]|\d)\1([0-2]\d|30|31)$/,
|
||||
example: '如: 1990-12-12、2020-01-01'
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user