1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| /**
| * 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}
| */
| export default function isPlainHostName(host: string): boolean;
|
|