!624 车辆识别代码为大写字母+数字,且不包含I、O、Q

Merge pull request !624 from 鱼叔/v5-dev
This commit is contained in:
Looly 2022-05-24 09:21:05 +00:00 committed by Gitee
commit e344043932
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,7 @@ public interface RegexPool {
* 十七位码车架号
* 车辆的唯一标示
*/
String CAR_VIN = "^[A-Za-z0-9]{17}$";
String CAR_VIN = "^[A-HJ-NPR-Z0-9]{17}$";
/**
* 驾驶证 别名驾驶证档案编号行驶证编号
* eg:430101758218

View File

@ -221,6 +221,7 @@ public class ValidatorTest {
public void isCarVinTest(){
Assert.assertTrue(Validator.isCarVin("LSJA24U62JG269225"));
Assert.assertTrue(Validator.isCarVin("LDC613P23A1305189"));
Assert.assertFalse(Validator.isCarVin("LOC613P23A1305189"));
}
@Test