From c953a983df5de29f15e2b545b12a5e7e392600a3 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sun, 18 Jul 2021 01:52:17 -0400 Subject: [PATCH] Updated Configuration (markdown) --- Configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration.md b/Configuration.md index 8d2ebb2..3fa07f6 100644 --- a/Configuration.md +++ b/Configuration.md @@ -130,7 +130,7 @@ When building your whitelist, you can check whether a given URL matches your reg ```python >>> import re >>> URL_WHITELIST = r'^http(s)?:\/\/(.+)?example\.com\/?.*$' # replace this with your regex to test ->>> URL_WHITELIST_PTN = re.compile(URL_BLACKLIST, re.IGNORECASE | re.UNICODE | re.MULTILINE) +>>> URL_WHITELIST_PTN = re.compile(URL_WHITELIST, re.IGNORECASE | re.UNICODE | re.MULTILINE) >>> bool(URL_WHITELIST_PTN.search('https://test.example.com/example.php?abc=123')) True # this URL would be archived