JS Utils Kit
    Preparing search index...

    Variable EMAIL_UNICODE_REGEXConst

    EMAIL_UNICODE_REGEX: RegExp = ...

    Regular expression to validate a Unicode-friendly email address.

    This pattern provides a looser, practical validation compared to EMAIL_REGEX, allowing a wider range of characters (including Unicode) in the local and domain parts.

    It ensures:

    • Local part length is between 1–64 characters
    • Domain part length is between 1–255 characters
    • Does not allow whitespace characters
    • Does not allow @ inside local or domain parts (only as separator)
    • Does not allow double quotes (") in the local part

    ⚠️ Note:

    • This regex is intentionally permissive and does not enforce strict domain structure (e.g., it does not require a dot or validate TLDs).
    • It is suitable for applications that need to support internationalized (Unicode) emails or flexible input validation.
    • It may accept some technically invalid email formats under strict RFC rules.
    EMAIL_UNICODE_REGEX.test("用户@例子.公司"); // true
    EMAIL_UNICODE_REGEX.test("δοκιμή@παράδειγμα.δοκιμή"); // true
    EMAIL_UNICODE_REGEX.test("user@example"); // true (no TLD enforcement)
    EMAIL_UNICODE_REGEX.test("user name@example.com"); // false (whitespace)
    EMAIL_UNICODE_REGEX.test('user"test@example.com'); // false (quote not allowed)