mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
d4f47c329a
commit
baece9e606
11
content.py
11
content.py
|
@ -84,11 +84,12 @@ 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:
|
||||||
url = text.split('"')[0]
|
continue
|
||||||
if '<' not in url and '>' not in url:
|
url = text.split('"')[0]
|
||||||
if len(url) > max_url_length:
|
if '<' not in url and '>' not in url:
|
||||||
return False
|
if len(url) > max_url_length:
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue