mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
car vin not include I O Q
This commit is contained in:
parent
337edc57fa
commit
64fe41a171
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user