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 71d9fc6 commit ccb16e9Copy full SHA for ccb16e9
src/tagstudio/qt/mixed/text_field.py
@@ -34,9 +34,7 @@ def set_text(self, text: str):
34
35
# Regex from https://stackoverflow.com/a/6041965
36
def linkify(text: str):
37
- url_pattern = (
38
- r"(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-*]*[\w@?^=%&\/~+#-*])"
39
- )
+ url_pattern = r"(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#\-*]*[\w@?^=%&\/~+#\-*])" # noqa: E501
40
return re.sub(
41
url_pattern,
42
lambda url: f'<a href="{url.group(0)}">{url.group(0)}</a>',
0 commit comments