@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 (9 loc) • 327 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._isFormatByte = void 0;
const _isFormatByte = (str) => {
PATTERN.lastIndex = 0;
return PATTERN.test(str);
};
exports._isFormatByte = _isFormatByte;
const PATTERN = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;