in sources/Google.Solutions.Platform/Net/ChromePolicyUrlPattern.cs [74:99]
public bool IsMatch(Uri input)
{
if (this.scheme == "file")
{
return false;
}
if (input.Scheme != "http" && input.Scheme != "https")
{
return false;
}
else if (this.scheme != null && this.scheme != input.Scheme)
{
return false;
}
if (this.port != null && this.port.Value != input.Port)
{
return false;
}
return
this.domain == null ||
this.domain == input.Host ||
this.includeSubdomains && input.Host.EndsWith("." + this.domain);
}