(x: URLRuleEntry[])
| 231 | }; |
| 232 | |
| 233 | export const toUniquePatternStrings = (x: URLRuleEntry[]) => { |
| 234 | return [...new Set<string>(x.map((e: URLRuleEntry) => e.patternString))]; |
| 235 | }; |
| 236 | |
| 237 | const urlMatchCache = new Map<string, boolean>(); |
| 238 | export const isUrlMatch = (url: string, rule: URLRuleEntry) => { |
no outgoing calls
no test coverage detected