We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 838b40b commit 858aeaeCopy full SHA for 858aeae
src/ui/pages/tickets/ScanTickets.page.tsx
@@ -564,6 +564,18 @@ const ScanTicketsPageInternal: React.FC<ScanTicketsPageProps> = ({
564
565
let email = inputValue;
566
567
+ // Check if input is from ACM card swiper (format: ACMCARD followed by 4 digits, followed by 9 digits)
568
+ if (email.startsWith("ACMCARD")) {
569
+ const uinMatch = email.match(/^ACMCARD(\d{4})(\d{9})/);
570
+ if (!uinMatch) {
571
+ setError("Invalid card swipe. Please try again.");
572
+ setIsLoading(false);
573
+ setShowModal(true);
574
+ return;
575
+ }
576
+ email = uinMatch[2]; // Extract the 9-digit UIN
577
578
+
579
// Check if input is UIN (all digits)
580
if (/^\d+$/.test(email)) {
581
try {
0 commit comments