Single-label *.tld: matches one extra label (case-sensitive).
Only fires when the tail is a literal — *.api-*.tld is a
generic glob, not a single-label match.
Generic glob: * becomes .* (crosses dots intentionally —
only the single-label branch enforces label boundaries).
Case-sensitive — lowercase both inputs for case-insensitive match.
True when
hostmatchespattern:pattern === host.*.tld: matches one extra label (case-sensitive). Only fires when the tail is a literal —*.api-*.tldis a generic glob, not a single-label match.*becomes.*(crosses dots intentionally — only the single-label branch enforces label boundaries).Case-sensitive — lowercase both inputs for case-insensitive match.