mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 15:35:03 +02:00
Fix trailing parentheses in URLs not being detected
Also fix URLs starting near the end of the line not being detected. Fixes #3688
This commit is contained in:
@@ -19,10 +19,7 @@ is_url_char(uint32_t ch) {
|
||||
static inline bool
|
||||
can_strip_from_end_of_url(uint32_t ch) {
|
||||
// remove trailing punctuation
|
||||
return (
|
||||
(is_P_category(ch) && ch != '/' && ch != '&' && ch != '-') ||
|
||||
ch == '>'
|
||||
) ? true : false;
|
||||
return (is_P_category(ch) && ch != '/' && ch != '&' && ch != '-' && ch != ')' && ch != ']' && ch != '}');
|
||||
}
|
||||
|
||||
static inline bool
|
||||
|
||||
Reference in New Issue
Block a user