mirror of
https://github.com/any86/any-rule.git
synced 2025-07-14 15:38:58 +08:00
fix: MAC地址的第二位一定是偶数(#264)
This commit is contained in:
parent
c0b38192b0
commit
bd26e0f450
2
packages/www/src/RULES.js
vendored
2
packages/www/src/RULES.js
vendored
@ -362,7 +362,7 @@ 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][0,2,4,6,8,a,c,e]:([a-f0-9]{2}:){4})|([a-f0-9][0,2,4,6,8,a,c,e]-([a-f0-9]{2}-){4}))[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']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user