feat: 车牌号带有’挂‘字样处理
This commit is contained in:
parent
4bd98be813
commit
200a58f370
@ -8,7 +8,7 @@ const validateLicensePlate = (plateNumber: string): boolean => {
|
||||
if (!plateNumber) {
|
||||
return false;
|
||||
}
|
||||
const regularExpression = /^[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}$/;
|
||||
const regularExpression = /^[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}(\u6302)?$/;
|
||||
return regularExpression.test(plateNumber);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user