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
I also faced the same issue and looked the code to find that,
As, for code generation for regex compilation raw string is used here and It’s not possible to include a backtick in a raw string literal. So, just remove the backtick from the regex expression.
Use this one as a workaround : "^[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])?)*$"
When a regex contains backticks, they are not properly escaped.
The following regex for validating email addresses will re-produce this issue
The text was updated successfully, but these errors were encountered: