Update and sort the list of allowable URL prefixes

This commit is contained in:
Michael Mintz 2023-05-30 21:16:41 -04:00
parent 8b8767e0a9
commit 27d2e44c3f
2 changed files with 6 additions and 4 deletions

View File

@ -12610,11 +12610,12 @@ class BaseCase(unittest.TestCase):
url.startswith("http:")
or url.startswith("https:")
or url.startswith("://")
or url.startswith("chrome:")
or url.startswith("about:")
or url.startswith("blob:")
or url.startswith("chrome:")
or url.startswith("data:")
or url.startswith("file:")
or url.startswith("edge:")
or url.startswith("file:")
or url.startswith("opera:")
or url.startswith("view-source:")
):

View File

@ -117,11 +117,12 @@ def is_valid_url(url):
if (
regex.match(url)
or url.startswith("about:")
or url.startswith("data:")
or url.startswith("blob:")
or url.startswith("chrome:")
or url.startswith("data:")
or url.startswith("edge:")
or url.startswith("opera:")
or url.startswith("file:")
or url.startswith("opera:")
):
return True
else: