Hyperlink detection incorrectly matches trailing characters
Bug #1702274 reported by
Torbjörn Lönnemark
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sakura |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Currently, enclosed URLs, like the following examples:
* «http://
* <http://
* (http://
* "http://
will match the trailing enclosing character, causing the Open link action to open an incorrect URL.
sakura will also match punctuation (e.g, '.', ',') at the end of URLs, which commonly occurs in written sentences. Matching these is almost never what you would want nor expect.
gnome-terminal handles both of these classes correctly.
For reference: https:/
Related branches
lp:~dabisu/sakura/sakura
- No reviews requested
Changed in sakura: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in sakura: | |
status: | Confirmed → Fix Committed |
Changed in sakura: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It would be possible to achieve this by copying gnome-terminal's src/terminal- regex.h, including that in sakura.c and replacing the current HTTP_REGEXP with REGEX_URL_AS_IS.