Skip to content

Commit 4864e15

Browse files
committed
Make email_pattern future-proof w.r.t. RegExp v flag
A proposed change upgrades the HTML `pattern` attribute to use the RegExp `v` flag instead of the `u` flag behind the scenes. This patch updates `email_pattern` to be compatible with both `u` and `v` flags, future-proofing the pattern. More background: https://groups.google.com/a/chromium.org/g/blink-dev/c/gIyvMw0n2qw
1 parent c8cb94a commit 4864e15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

articles/active-directory-b2c/language-customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ You configure localized resources elements for the content definition and any la
285285
<LocalizedString ElementType="UxElement" StringId="local_intro_email">#Iniciar sesión con su cuenta existente</LocalizedString>
286286
<LocalizedString ElementType="UxElement" StringId="invalid_email">#Escriba una dirección de correo electrónico válida</LocalizedString>
287287
<LocalizedString ElementType="UxElement" StringId="unknown_error">#Tenemos problemas para iniciar su sesión. Vuelva a intentarlo más tarde. </LocalizedString>
288-
<LocalizedString ElementType="UxElement" StringId="email_pattern">^[a-zA-Z0-9.!#$%&amp;'^_`{}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$</LocalizedString>
288+
<LocalizedString ElementType="UxElement" StringId="email_pattern">^[a-zA-Z0-9.!#$%&amp;'^_`\{\}~\-]+@[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*$</LocalizedString>
289289
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInvalidPassword">#Su contraseña es incorrecta.</LocalizedString>
290290
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsPrincipalDoesNotExist">#Parece que no podemos encontrar su cuenta.</LocalizedString>
291291
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfOldPasswordUsed">#Parece que ha usado una contraseña antigua.</LocalizedString>

articles/active-directory-b2c/localization-string-ids.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The following IDs are used for a content definition with an ID of `api.signupors
3636
| `logonIdentifier_email` | Email Address | `< 2.0.0` |
3737
| `requiredField_email` | Please enter your email | `< 2.0.0` |
3838
| `invalid_email` | Please enter a valid email address | `< 2.0.0` |
39-
| `email_pattern` | ```^[a-zA-Z0-9.!#$%&''\*+/=?^\_\`{\|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)\*$``` | `< 2.0.0` |
39+
| `email_pattern` | ```^[a-zA-Z0-9.!#$%&'*+\/=?^_`\{\|\}~\-]+@[a-zA-Z0-9\-]+(?:\\.[a-zA-Z0-9\-]+)\*$``` | `< 2.0.0` |
4040
| `local_intro_username` | Sign in with your user name | `< 2.0.0` |
4141
| `logonIdentifier_username` | Username | `< 2.0.0` |
4242
| `requiredField_username` | Please enter your user name | `< 2.0.0` |

0 commit comments

Comments
 (0)