Skip to content

Commit b120991

Browse files
authored
Update EID validation pattern for format correction
1 parent e78ebc9 commit b120991

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/member/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ document.addEventListener('DOMContentLoaded', function() {
6969

7070
// Function to validate EID format - moved outside to be accessible everywhere
7171
function isValidEid(eid) {
72-
const eidPattern = /^[a-z]{2,3}[0-9]{3,8}$/;
72+
const eidPattern = /^[a-z]{2,3}[0-9]{2,8}$/;
7373
return eidPattern.test(eid);
7474
}
7575

@@ -134,7 +134,7 @@ document.addEventListener('DOMContentLoaded', function() {
134134

135135
// Validate EID format
136136
if (!isValidEid(eid)) {
137-
statusElement.textContent = 'Invalid EID format. Please enter 2-3 lowercase letters followed by 3-8 numbers.';
137+
statusElement.textContent = 'Invalid EID format. Please enter 2-3 lowercase letters followed by 2-8 numbers.';
138138
statusElement.className = 'status-message error';
139139
return;
140140
}

0 commit comments

Comments
 (0)