Skip to main content

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 kindRule
Web originexact match, case-insensitive host; scheme must match
https://*.example.organy subdomain depth, NOT the apex
no portthe scheme's default port only
:*any port
native idcase-insensitive exact, or suffix wildcard org.example.*
node hostapps is not evaluated — vacuously true

Parameters

ParameterType
patternstring
hostHostIdentity

Returns

boolean