feat: 车牌号带有’挂‘字样处理

This commit is contained in:
lyx 2024-03-19 14:43:42 +08:00
parent 4bd98be813
commit 200a58f370

View File

@ -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);
};