Skip to content

Commit 4e17d54

Browse files
committed
edi
1 parent 777756e commit 4e17d54

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

public/member/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2>Welcome to the Member Area</h2>
2525
<input type="text" id="eid" name="eid" required pattern="[a-zA-Z]{2,3}[0-9]{2,8}" title="Enter a valid UT EID (2-3 letters followed by 2-8 numbers)">
2626
<button type="button" id="eidSubmitBtn" class="submit-btn">Submit</button>
2727
</div>
28-
<small class="form-text">Your UT EID should be 2-3 letters followed by 3-8 numbers. Click Submit after entering your EID.</small>
28+
<small class="form-text">Your UT EID should be 2-3 letters followed by 2-8 numbers. Click Submit after entering your EID.</small>
2929
<div id="eidStatus" class="status-message"></div>
3030
</div>
3131

public/member/script.js

Lines changed: 3 additions & 3 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]{2,8}$/;
72+
const eidPattern = /^[a-zA-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 2-8 numbers.';
137+
statusElement.textContent = 'Invalid EID format. Please enter 2-3 letters followed by 2-8 numbers.';
138138
statusElement.className = 'status-message error';
139139
return;
140140
}
@@ -202,7 +202,7 @@ document.addEventListener('DOMContentLoaded', function() {
202202

203203
// Show validation message while typing
204204
if (!isValidEid(eid)) {
205-
statusElement.textContent = 'EID should be 2-3 letters followed by 3-8 numbers';
205+
statusElement.textContent = 'EID should be 2-3 letters followed by 2-8 numbers';
206206
statusElement.className = 'status-message warning';
207207
} else {
208208
statusElement.textContent = 'Valid EID format. Click Submit to check membership.';

0 commit comments

Comments
 (0)