lokesh341 commited on
Commit
d2f0c93
·
verified ·
1 Parent(s): 7edfa8d

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +1 -1
templates/index.html CHANGED
@@ -105,7 +105,7 @@
105
  let transcript = event.results[0][0].transcript.trim();
106
 
107
  if (isNameCaptured && !isEmailCaptured) {
108
- const cleanedEmail = transcript.replace(/\s/g, '').replace(/\bat\b/gi, '@');
109
  emailInput.value = cleanedEmail.replace(/@{2,}/g, '@'); // Ensure only one @
110
  status.textContent = 'Registration complete.';
111
  speak("Registration complete. Go to the next step and take the order you want.");
 
105
  let transcript = event.results[0][0].transcript.trim();
106
 
107
  if (isNameCaptured && !isEmailCaptured) {
108
+ const cleanedEmail = transcript.replace(/\b(at|At|AT)\b/g, '@');
109
  emailInput.value = cleanedEmail.replace(/@{2,}/g, '@'); // Ensure only one @
110
  status.textContent = 'Registration complete.';
111
  speak("Registration complete. Go to the next step and take the order you want.");