@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 • 429 B
Source Map (JSON)
{"version":3,"file":"_isFormatDuration.mjs","sources":["../../src/functional/_isFormatDuration.ts"],"sourcesContent":["export const _isFormatDuration = (str: string): boolean => PATTERN.test(str);\n\nconst PATTERN =\n /^P(?!$)((\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?|(\\d+W)?)$/;\n"],"names":["_isFormatDuration","str","PATTERN","test"],"mappings":"AAAO,MAAMA,oBAAqBC,OAAyBC,QAAQC,KAAKF;;AAExE,MAAMC,UACJ;;"}