fix: 修正"日期"正则, 更符合显示情况

This commit is contained in:
宁宁 2019-07-05 17:01:39 +08:00
parent f69ee8628f
commit 9c37d56935

View File

@ -62,7 +62,7 @@ module.exports = [{
}, },
{ {
title: '日期, 如: 2000-01-01', title: '日期, 如: 2000-01-01',
rule: /^\d{4}(-)\d{1,2}\1\d{1,2}$/, rule: /^\d{4}(-)([0-1][0-2]|\d)\1([0-2]\d|30|31)$/,
example: '如: 1990-12-12、2020-01-01' example: '如: 1990-12-12、2020-01-01'
}, },
{ {