We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb1161b commit 58c773aCopy full SHA for 58c773a
tagstudio/src/core/utils/web.py
@@ -6,6 +6,5 @@ def strip_web_protocol(string: str) -> str:
6
"""Strips a leading web protocol (ex. \"https://\") as well as \"www.\" from a string."""
7
prefixes = ['https://','http://','www.','www2.']
8
for prefix in prefixes:
9
- if string.startswith(prefix):
10
- string = string.replace(prefix, '')
+ string = string.removeprefix(prefix)
11
return string
0 commit comments