JS Utils Kit
    Preparing search index...

    Variable EMAIL_REGEX_PRESETSConst

    EMAIL_REGEX_PRESETS: { strict: RegExp; unicode: RegExp } = ...

    Predefined email validation presets.

    These presets provide different levels of strictness depending on your use case.

    Type Declaration

    • Readonlystrict: RegExp

      EMAIL_REGEX - Validates both local and domain parts with specific character rules and structure.

    • Readonlyunicode: RegExp

      Unicode-friendly validation.

      Allows international characters and relaxed domain rules.

      EMAIL_UNICODE_REGEX - Validates email addresses with a focus on practical use and Unicode support, without strict domain structure enforcement.

    isEmail('user@example.com', EMAIL_REGEX_PRESETS.strict);   // true
    isEmail('用户@例子.公司', EMAIL_REGEX_PRESETS.unicode); // true