mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
Merge branch 'develop' of https://github.com/any86/any-rule into develop
This commit is contained in:
commit
ad6ec26f4d
@ -319,5 +319,10 @@ module.exports = [{
|
|||||||
title: 'mac地址',
|
title: 'mac地址',
|
||||||
rule: /^((([a-f0-9]{2}:){5})|(([a-f0-9]{2}-){5}))[a-f0-9]{2}$/i,
|
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']
|
examples: ['38:f9:d3:4b:f5:51','00-0C-29-CA-E4-66']
|
||||||
}
|
},
|
||||||
];
|
{
|
||||||
|
title: '匹配连续重复的字符',
|
||||||
|
rule: /(.)\1+/,
|
||||||
|
examples: ['我我我','112233','11234']
|
||||||
|
}
|
||||||
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user