parse-domain
Version:
Splits a hostname into subdomains, domain and (effective) top-level domains
8 lines • 433 B
JavaScript
// UP, SAME, DOWN, RESET should not be special regex characters in a character class.
export const UP = "<"; // one level up
export const SAME = ","; // same level
export const DOWN = ">"; // one level down
export const RESET = "|"; // reset level index and start new
export const WILDCARD = "*"; // as defined by publicsuffix.org
export const EXCEPTION = "!"; // as defined by publicsuffix.org
//# sourceMappingURL=characters.js.map