From 02aa413ab31aceac4e6743e157baed9203160eaf Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 27 Dec 2021 17:32:34 +0000 Subject: [PATCH] Snake case --- content.py | 4 ++-- utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content.py b/content.py index 43212eed1..e076dd39a 100644 --- a/content.py +++ b/content.py @@ -18,7 +18,7 @@ from utils import get_image_extensions from utils import load_json from utils import save_json from utils import fileLastModified -from utils import getLinkPrefixes +from utils import get_link_prefixes from utils import dangerousMarkup from utils import is_pgp_encrypted from utils import contains_pgp_public_key @@ -401,7 +401,7 @@ def addWebLinks(content: str) -> str: if ':' not in content: return content - prefixes = getLinkPrefixes() + prefixes = get_link_prefixes() # do any of these prefixes exist within the content? prefixFound = False diff --git a/utils.py b/utils.py index cfd02f8a4..961ca672d 100644 --- a/utils.py +++ b/utils.py @@ -626,7 +626,7 @@ def get_protocol_prefixes() -> []: 'hyper://', 'gemini://', 'gopher://') -def getLinkPrefixes() -> []: +def get_link_prefixes() -> []: """Returns a list of valid web link prefixes """ return ('https://', 'http://', 'ftp://',