API Reference
InvalidMatchPattern
class InvalidMatchPattern extends Error {
constructor(matchPattern: string, reason: string) {
// ...
}
}
MatchPattern
class MatchPattern {
constructor(matchPattern: string) {
// ...
}
includes(url: string | URL | Location): boolean {
// ...
}
}
Class for parsing and performing operations on match patterns.
Examples
const pattern = new MatchPattern("*://google.com/*");
pattern.includes("https://google.com"); // true
pattern.includes("http://youtube.com/watch?v=123") // false
API reference generated by docs/generate-api-references.ts
Table of Contents