{"version":3,"file":"_isFormatEmail.mjs","names":[],"sources":["../../src/internal/_isFormatEmail.ts"],"sourcesContent":["/**\n * Checks the ASCII email spelling of the `email` format.\n *\n * Accepts a dot-separated local part of RFC 5322 atom characters and a domain\n * of at least two dot-separated alphanumeric labels, ignoring case. Quoted\n * local parts, address literals, non-ASCII characters and the 64 and 254\n * character length limits are not handled.\n *\n * @evidence contracts/common.md#principled-implementation One expression accepts a dot-atom local part of RFC 5322 atext characters and a domain of at least two alphanumeric labels with interior hyphens, ignoring case; it is a practical subset and not the full address grammar, so quoted local parts, address literals, non-ASCII characters and the length limits are outside it.\n * @evidence contracts/common.md#clear-and-simple-design One predicate and one private pattern, identical to the copy in @typia/utils.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The grammar is the stated subset and nothing is keyed on addresses.\n * @evidence contracts/common.md#meaningful-documentation The doc lists the accepted and unsupported forms.\n */\nexport const _isFormatEmail = (str: string): boolean => PATTERN.test(str);\n\nconst PATTERN =\n  /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i;\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAa,kBAAkB,QAAyB,QAAQ,KAAK,GAAG;AAExE,MAAM,UACJ"}