Add explanation and source for Pattern implementation
This commit is contained in:
parent
944ab7c4da
commit
3843c13c46
|
|
@ -432,6 +432,16 @@ export function rewriteOpenSSLErrorIfNeeded(error: Error): Error {
|
||||||
].join('\n'));
|
].join('\n'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Pattern is a pattern that matches a URL. Based on the Chromium
|
||||||
|
implementation, used in content policies:
|
||||||
|
https://source.chromium.org/chromium/chromium/src/+/main:components/content_settings/core/common/content_settings_pattern.h;l=248;drc=20799f4c32d950ce93d495f44eec648400f38a19
|
||||||
|
|
||||||
|
Example: "https://[*.].hello.com/path"
|
||||||
|
|
||||||
|
The only difference is that we don't support the precedence rules and
|
||||||
|
paths patterns are not implemented.
|
||||||
|
*/
|
||||||
export class Pattern {
|
export class Pattern {
|
||||||
private readonly _scheme: string;
|
private readonly _scheme: string;
|
||||||
private readonly _isSchemeWildcard: boolean;
|
private readonly _isSchemeWildcard: boolean;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue