You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Josh-Cena
added
closed: question
A user misinterpretation or support question. No action required.
and removed
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
labels
Sep 27, 2024
Chrome dev console thought it terminated the RegExp.Sent from my iPhoneOn Sep 27, 2024, at 10:49 AM, Joshua Chen ***@***.***> wrote:
The "22nd character" is inside a character class and slashes don't need to be escaped there.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
MDN URL
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email
What specific section or headline is this issue about?
Basic validation
What information was incorrect, unhelpful, or incomplete?
The RE for email validation has an unescaped '/' at the 22nd character.
What did you expect to see?
/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/html/element/input/email
The text was updated successfully, but these errors were encountered: