Update and sort the list of allowable URL prefixes
This commit is contained in:
parent
8b8767e0a9
commit
27d2e44c3f
|
@ -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:")
|
||||
):
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue