Less indentation

main
Bob Mottram 2024-08-30 11:40:13 +01:00
parent d4f47c329a
commit baece9e606
1 changed files with 6 additions and 5 deletions

View File

@ -84,7 +84,8 @@ def valid_url_lengths(content: str, max_url_length: int) -> bool:
if ctr == 0: if ctr == 0:
ctr += 1 ctr += 1
continue continue
if '"' in text: if '"' not in text:
continue
url = text.split('"')[0] url = text.split('"')[0]
if '<' not in url and '>' not in url: if '<' not in url and '>' not in url:
if len(url) > max_url_length: if len(url) > max_url_length: