(uuid: T, rules: URLRuleEntry[])
| 11 | } |
| 12 | |
| 13 | public addRules(uuid: T, rules: URLRuleEntry[]) { |
| 14 | this.cacheMap.clear(); |
| 15 | let map = this.rulesMap.get(uuid); |
| 16 | if (!map) this.rulesMap.set(uuid, (map = [])); |
| 17 | map.push(...rules); |
| 18 | } |
| 19 | |
| 20 | public urlMatch(url: string): T[] { |
| 21 | const cacheMap = this.cacheMap; |