Merge pull request #100 from notbucai/patch-1

feat: 新增"匹配连续重复的字符"
This commit is contained in:
any86 2020-05-26 16:49:14 +08:00 committed by GitHub
commit d42d41905f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -319,5 +319,10 @@ module.exports = [{
title: 'mac地址',
rule: /^((([a-f0-9]{2}:){5})|(([a-f0-9]{2}-){5}))[a-f0-9]{2}$/i,
examples: ['38:f9:d3:4b:f5:51','00-0C-29-CA-E4-66']
},
{
title: '匹配连续重复的字符',
rule: /(.)\1+/,
examples: ['我我我','112233','11234']
}
];