Skip to content

Commit eefbdb3

Browse files
authored
Update MyFrame.java
1 parent 02fcfb7 commit eefbdb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/MyFrame.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ else if("back".equals(cmd)) {
7070
protected boolean ValueCheck(String usn,String name) {
7171
if(usn.isEmpty() || name.isEmpty() || usn.length() != 10)
7272
return false;
73-
String pattern = "^1VI\\d{2}[A-Z]{2}\\d{3}$"; //regex only for 10-digit USN (vtu pattern)
73+
String pattern = "^1[A-Z]{2}\\d{2}[A-Z]{2}\\d{3}$"; //regex only for 10-digit USN (vtu pattern)
7474
return usn.matches(pattern);
7575

7676
}

0 commit comments

Comments
 (0)