mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-25 07:20:59 +02:00
when checking link invariants, check for regex match as well
This commit is contained in:
@@ -677,6 +677,7 @@ def check_link_structure(link):
|
||||
assert isinstance(link, dict)
|
||||
assert isinstance(link.get('url'), str)
|
||||
assert len(link['url']) > 2
|
||||
assert len(re.findall(URL_REGEX, link['url'])) == 1
|
||||
|
||||
|
||||
def check_links_structure(links):
|
||||
|
Reference in New Issue
Block a user