frontend/.pnpm-store/v3/files/86/654824919db173e12a8f11e272720a127b3cd46bf8ec9ee83c487ff5909b2f340708f3741432efcc43c4e5b666a65e1f96f7d3e20ec374b815220e05aac232

23 lines
528 B
Plaintext

"use strict";
/**
* True iff there is no domain name in the hostname (no dots).
*
* Examples:
*
* ``` js
* isPlainHostName("www")
* // is true.
*
* isPlainHostName("www.netscape.com")
* // is false.
* ```
*
* @param {String} host The hostname from the URL (excluding port number).
* @return {Boolean}
*/
Object.defineProperty(exports, "__esModule", { value: true });
function isPlainHostName(host) {
return !/\./.test(host);
}
exports.default = isPlainHostName;
//# sourceMappingURL=isPlainHostName.js.map