URL detection fails with underscores after "@" in path
Bug
URL detection for URLs containing an underscore _
after an @
in the path does not work. Only the part up until the underscore is detected as an URL.
Steps to Reproduce
-
echo https://www.example.com/@test_me/fail
-
If hovering with the mouse over the line the underline that shows a link that I can open is either on the
https://www.example.com/@test_
orwww.example.com/@test_me/fail
-
With this line
echo https://www.example.com/@test/success
the complete URLhttps://www.example.com/@test/success
is detected and underlined to be opened as a link.
Expected Outcome
The URL is correctly and completely parsed.
Actual Outcome
Seems the URL parser gets confused by the @
, maybe interpreting it as an authority?
This is what python3 thinks about the test URL:
>>> from urllib.parse import urlparse
>>> urlparse("https://www.example.com/@test_me/fail")
ParseResult(scheme='https', netloc='www.example.com', path='/@test_me/fail', params='', query='', fragment='')
Screencast_from_2024-03-08_14-17-03
Video or ScreenshotInformation
- Wayland or X11? - Wayland
- Are you running Black Box via Flatpak? - no, Debian unstable
- What version of Black Box? - 0.14.0
- Have you updated your Flatpak dependencies recently? - n/a
- Are you running Wayland + Nvidia? - no
Edited by Kai Weber