Checklist
TagStudio Version
Alpha 9.5.6
Operating System & Version
NixOS 25.05
Description
The regex for URLs missbehaves, and causes - (dashes) in the path segment of the url to not be recognised.
This is because it takes #-* to be a range instead of a collection of [#, -, *] to fix this we only have to add a \ to put it like so #\-*
|
r"(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-*]*[\w@?^=%&\/~+#-*])" |
(http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#\-*]*[\w@?^=%&\/~+#\-*])
Expected Behavior
For the URLs containing - in the path part to be recognised and clickable as a whole.
Steps to Reproduce
- Add URL Field
- Add URL with
- in the path part for example https://docs.tagstud.io/preview-support/
- Only
https://docs.tagstud.io/preview get's highlighted
Logs
No response
Checklist
TagStudio Version
Alpha 9.5.6
Operating System & Version
NixOS 25.05
Description
The regex for URLs missbehaves, and causes
-(dashes) in the path segment of the url to not be recognised.This is because it takes
#-*to be a range instead of a collection of [#,-,*] to fix this we only have to add a\to put it like so#\-*TagStudio/src/tagstudio/qt/mixed/text_field.py
Line 38 in 88d0b47
Expected Behavior
For the URLs containing
-in the path part to be recognised and clickable as a whole.Steps to Reproduce
-in the path part for examplehttps://docs.tagstud.io/preview-support/https://docs.tagstud.io/previewget's highlightedLogs
No response