UNPKG

@samchon/openapi

Version:

OpenAPI definitions and converters for 'typia' and 'nestia'.

1 lines 549 B
{"version":3,"file":"_isFormatUriTemplate.mjs","sources":["../../src/functional/_isFormatUriTemplate.ts"],"sourcesContent":["export const _isFormatUriTemplate = (str: string): boolean => PATTERN.test(str);\n\nconst PATTERN =\n /^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i;\n"],"names":["_isFormatUriTemplate","str","PATTERN","test"],"mappings":"AAAO,MAAMA,uBAAwBC,OAAyBC,QAAQC,KAAKF;;AAE3E,MAAMC,UACJ;;"}