@samchon/openapi
Version:
OpenAPI definitions and converters for 'typia' and 'nestia'.
1 lines • 454 B
Source Map (JSON)
{"version":3,"file":"_isFormatIdnHostname.mjs","sources":["../../src/functional/_isFormatIdnHostname.ts"],"sourcesContent":["export const _isFormatIdnHostname = (str: string): boolean => PATTERN.test(str);\n\nconst PATTERN =\n /^([a-z0-9\\u00a1-\\uffff0-9]+(-[a-z0-9\\u00a1-\\uffff0-9]+)*\\.)+[a-z\\u00a1-\\uffff]{2,}$/i;\n"],"names":["_isFormatIdnHostname","str","PATTERN","test"],"mappings":"AAAO,MAAMA,uBAAwBC,OAAyBC,QAAQC,KAAKF;;AAE3E,MAAMC,UACJ;;"}