UNPKG

@samchon/openapi

Version:

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

7 lines (4 loc) 244 B
const _isFormatIdnHostname = str => PATTERN.test(str); const PATTERN = /^([a-z0-9\u00a1-\uffff0-9]+(-[a-z0-9\u00a1-\uffff0-9]+)*\.)+[a-z\u00a1-\uffff]{2,}$/i; export { _isFormatIdnHostname }; //# sourceMappingURL=_isFormatIdnHostname.mjs.map