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 400 B
{"version":3,"file":"_isFormatRegex.mjs","sources":["../../src/functional/_isFormatRegex.ts"],"sourcesContent":["export const _isFormatRegex = (str: string): boolean => {\n try {\n new RegExp(str);\n return true;\n } catch {\n return false;\n }\n};\n"],"names":["_isFormatRegex","str","RegExp"],"mappings":"AAAO,MAAMA,iBAAkBC;IAC7B;QACE,IAAIC,OAAOD;QACX,OAAO;AACT,MAAE;QACA,OAAO;AACT;;;"}