Function: matchesApp()
function matchesApp(pattern, host): boolean;
Defined in: host.ts:132
Does one apps[] pattern match the current host? Implements the docs/15
§4.2 table:
| Pattern kind | Rule |
|---|---|
| Web origin | exact match, case-insensitive host; scheme must match |
https://*.example.org | any subdomain depth, NOT the apex |
| no port | the scheme's default port only |
:* | any port |
| native id | case-insensitive exact, or suffix wildcard org.example.* |
| node host | apps is not evaluated — vacuously true |
Parameters
| Parameter | Type |
|---|---|
pattern | string |
host | HostIdentity |
Returns
boolean