@samchon/openapi
Version:
Universal OpenAPI to LLM function calling schemas. Transform any Swagger/OpenAPI document into type-safe schemas for OpenAI, Claude, Qwen, and more.
7 lines (6 loc) • 350 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._isFormatIdnEmail = void 0;
const _isFormatIdnEmail = (str) => PATTERN.test(str);
exports._isFormatIdnEmail = _isFormatIdnEmail;
const PATTERN = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;