mirror of https://gitlab.com/bashrc2/epicyon
Snake case
parent
9b944360c0
commit
02aa413ab3
|
@ -18,7 +18,7 @@ from utils import get_image_extensions
|
||||||
from utils import load_json
|
from utils import load_json
|
||||||
from utils import save_json
|
from utils import save_json
|
||||||
from utils import fileLastModified
|
from utils import fileLastModified
|
||||||
from utils import getLinkPrefixes
|
from utils import get_link_prefixes
|
||||||
from utils import dangerousMarkup
|
from utils import dangerousMarkup
|
||||||
from utils import is_pgp_encrypted
|
from utils import is_pgp_encrypted
|
||||||
from utils import contains_pgp_public_key
|
from utils import contains_pgp_public_key
|
||||||
|
@ -401,7 +401,7 @@ def addWebLinks(content: str) -> str:
|
||||||
if ':' not in content:
|
if ':' not in content:
|
||||||
return content
|
return content
|
||||||
|
|
||||||
prefixes = getLinkPrefixes()
|
prefixes = get_link_prefixes()
|
||||||
|
|
||||||
# do any of these prefixes exist within the content?
|
# do any of these prefixes exist within the content?
|
||||||
prefixFound = False
|
prefixFound = False
|
||||||
|
|
2
utils.py
2
utils.py
|
@ -626,7 +626,7 @@ def get_protocol_prefixes() -> []:
|
||||||
'hyper://', 'gemini://', 'gopher://')
|
'hyper://', 'gemini://', 'gopher://')
|
||||||
|
|
||||||
|
|
||||||
def getLinkPrefixes() -> []:
|
def get_link_prefixes() -> []:
|
||||||
"""Returns a list of valid web link prefixes
|
"""Returns a list of valid web link prefixes
|
||||||
"""
|
"""
|
||||||
return ('https://', 'http://', 'ftp://',
|
return ('https://', 'http://', 'ftp://',
|
||||||
|
|
Loading…
Reference in New Issue