@astral/validations 4.18.0 → 4.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/email/constants.js +1 -1
- package/package.json +1 -1
package/email/constants.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { createErrorCode } from '../core';
|
2
2
|
export const EMAIL_REGEXP = /^[-\w.]+@([A-z0-9][-A-z0-9]+\.)+[A-z]{2,}$/;
|
3
|
-
export const EMAIL_CYRILLIC_PUNYCODE_REGEXP = /^[
|
3
|
+
export const EMAIL_CYRILLIC_PUNYCODE_REGEXP = /^([A-z0-9][-_\+A-z0-9]+)|([А-яЁё0-9][-_\+А-яЁё0-9]+)@((([A-z0-9][-_A-z0-9]+)|([А-яЁё0-9][-_А-яЁё0-9]+)|(xn--[a-z0-9]+))\.)+?(([A-zА-яЁё]{2,})|(xn--[a-z0-9]+))$/;
|
4
4
|
export const LATIN_SYMBOLS = /[a-zA-Z]/;
|
5
5
|
export const CYRILLIC_SYMBOLS = /[а-яА-ЯёЁ]/;
|
6
6
|
export const EMAIL_MAX_LENGTH = 254;
|