fix: MAC地址的第二位一定是偶数(#264)

This commit is contained in:
Russell 2022-11-07 11:34:02 +08:00
parent c0b38192b0
commit bd26e0f450

View File

@ -362,7 +362,7 @@ module.exports = [{
},
{
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']
},
{