@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) • 358 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._isFormatEmail = void 0;
const _isFormatEmail = (str) => PATTERN.test(str);
exports._isFormatEmail = _isFormatEmail;
const PATTERN = /^[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;