UNPKG

@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.

10 lines (7 loc) 248 B
const _isFormatByte = str => { PATTERN.lastIndex = 0; return PATTERN.test(str); }; const PATTERN = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm; export { _isFormatByte }; //# sourceMappingURL=_isFormatByte.mjs.map