Snake case

merge-requests/30/head
Bob Mottram 2021-12-27 17:32:34 +00:00
parent 9b944360c0
commit 02aa413ab3
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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://',