From b5cc7d1c3a589982757aea5fe584ff78ef58291a Mon Sep 17 00:00:00 2001 From: erosman Date: Tue, 24 Oct 2023 11:43:28 +0330 Subject: [PATCH] Add files via upload --- src/content/pattern.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/pattern.js b/src/content/pattern.js index d4bcf4c..34b3e40 100644 --- a/src/content/pattern.js +++ b/src/content/pattern.js @@ -49,7 +49,7 @@ export class Pattern { // --- pattern i = i.replaceAll('.', '\\.') // literal '.' - .replaceAll('*', '.*'); // wildcard + .replaceAll('*', '.*'); // wildcard i.startsWith('\\.') && (i = '^[a-z]+://.*' + i); // starting with '.' !i.includes('://') && (i = '^[a-z]+://' + i); // add scheme !i.startsWith('^') && (i = '^' + i); // add start with assertion