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.

1 lines 479 B
{"version":3,"file":"_isFormatByte.mjs","sources":["../../src/functional/_isFormatByte.ts"],"sourcesContent":["export const _isFormatByte = (str: string): boolean => {\n PATTERN.lastIndex = 0;\n return PATTERN.test(str);\n};\n\nconst PATTERN =\n /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;\n"],"names":["_isFormatByte","str","PATTERN","lastIndex","test"],"mappings":"AAAO,MAAMA,gBAAiBC;IAC5BC,QAAQC,YAAY;IACpB,OAAOD,QAAQE,KAAKH;;;AAGtB,MAAMC,UACJ;;"}