From 9d0d1b30e85f87a3a693bf2829f486a0b11f8d56 Mon Sep 17 00:00:00 2001
From: wangliuyang <wlyang9@163.com>
Date: 星期三, 14 九月 2022 11:17:18 +0800
Subject: [PATCH] 新能源车辆增加AA开头的

---
 JavaSource/com/mandi/common/ParamFileter/RegexCheck.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/JavaSource/com/mandi/common/ParamFileter/RegexCheck.java b/JavaSource/com/mandi/common/ParamFileter/RegexCheck.java
index ae26952..a61bf8d 100644
--- a/JavaSource/com/mandi/common/ParamFileter/RegexCheck.java
+++ b/JavaSource/com/mandi/common/ParamFileter/RegexCheck.java
@@ -291,7 +291,9 @@
 			if(vehicleID.length()==7){
 				regex="[浜触娌笣鍐�璞簯杈介粦婀樼殩椴佹柊鑻忔禉璧i剛妗傜敇鏅嬭挋闄曞悏闂借吹绮ら潚钘忓窛瀹佺惣浣块鏃燷{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9鎸傚璀︽腐婢砞{1}$";
 //				regex="[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9鎸傚璀︽腐婢砞{1}$";
-			}else{
+			}else if(vehicleID.length()==8){
+				regex = "^([浜触娌笣鍐�璞簯杈介粦婀樼殩椴佹柊鑻忔禉璧i剛妗傜敇鏅嬭挋闄曞悏闂借吹绮ら潚钘忓窛瀹佺惣浣块鏃燷[a-zA-Z](([ADF](?![IO])[A-Z0-9][0-9]{4})|([0-9]{5}[DF])))$";
+			} else{
 				regex="[浜触娌笣鍐�璞簯杈介粦婀樼殩椴佹柊鑻忔禉璧i剛妗傜敇鏅嬭挋闄曞悏闂借吹绮ら潚钘忓窛瀹佺惣浣块鏃燷{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))";
 //				regex="[\u4e00-\u9fa5]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))";
 			}

--
Gitblit v1.9.3