-
-
Notifications
You must be signed in to change notification settings - Fork 454
Closed
Labels
TagStudio: LibraryRelating to the TagStudio library systemRelating to the TagStudio library systemType: BugSomething isn't working as intendedSomething isn't working as intendedType: UI/UXUser interface and/or user experienceUser interface and/or user experience
Milestone
Description
Checklist
- I am using an up-to-date version.
- I have read the documentation.
- I have searched existing issues.
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 examplehttps://docs.tagstud.io/preview-support/ - Only
https://docs.tagstud.io/previewget's highlighted
Logs
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
TagStudio: LibraryRelating to the TagStudio library systemRelating to the TagStudio library systemType: BugSomething isn't working as intendedSomething isn't working as intendedType: UI/UXUser interface and/or user experienceUser interface and/or user experience