From 22332797e39c005de0f6f28a699262781bcc6835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Fri, 19 Jul 2024 16:01:03 +0200 Subject: [PATCH] rules: fix regex for matching any TLD --- content/specs/rules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/specs/rules.md b/content/specs/rules.md index 8571c7b..6756994 100644 --- a/content/specs/rules.md +++ b/content/specs/rules.md @@ -72,7 +72,7 @@ The typical structure is `?` fields: `^https?://(?:[a-z0-9-]+\\.)*?\\.`. If you want to match with every TLD, -you can substitute the TLD field with `(?:[a-z]{2,}){1,}`. +you can substitute `\\.` with `(?:\\.[a-z]{2,}){1,}`. ### `completeProvider` The **completeProvider** is a boolean, that determines if every URL that matches the **urlPattern** will be blocked.