1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00
alacritty/src
Christian Duerr 4102fc994a
Add heuristic to remove parentheses
While parentheses in URLs are perfectly legal in positions even where
they don't make a lot of sense (like `https://github.com)`), they can
often lead to parsing errors when URLs are added in parentheses as side
comment (like `(https://github.com)`).

To improve the URL parsing when clicking on links, special heuristics
have been added which aim to remove parentheses in occasions where they
are not expected to be part of the URL.

This includes removing leading parentheses (like `((https://url.com`),
which are always removed before any other heuristic.

If the URL ends with closing parentheses, but there are no matching
opening parentheses in the URL (after stripping all leading
parentheses), the trailing parentheses will also be removed until there
are only matching parentheses left. This allows parsing URLs like
`https://github.com/de(mo).html)))`.
2018-10-04 21:17:41 +02:00
..
grid Change default URL launchers 2018-10-03 03:23:12 +02:00
renderer Add hidden escape sequence 2018-09-19 19:18:51 +00:00
term Change default URL launchers 2018-10-03 03:23:12 +02:00
ansi.rs Merge master into scrollback 2018-07-28 23:10:13 +00:00
cli.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
config.rs Add option to open URLs on click 2018-10-02 21:52:17 +02:00
display.rs Fix mesa rendering outside window borders on wayland 2018-09-23 16:21:47 +00:00
event.rs Add heuristic to remove parentheses 2018-10-04 21:17:41 +02:00
event_loop.rs Rework auto-scrolling options 2018-06-02 09:56:50 -07:00
index.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
input.rs Change default URL launchers 2018-10-03 03:23:12 +02:00
lib.rs Add option to open URLs on click 2018-10-02 21:52:17 +02:00
locale.rs Fix style issues 2018-09-17 23:34:56 +00:00
logging.rs Merge master into scrollback 2018-07-28 23:10:13 +00:00
macros.rs Merge master into scrollback 2018-07-28 23:10:13 +00:00
main.rs Fix mesa rendering outside window borders on wayland 2018-09-23 16:21:47 +00:00
meter.rs Remove all instances of unwrap() from config 2018-03-04 22:40:15 +00:00
selection.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
sync.rs Fix some compiler warnings 2016-09-23 10:12:11 -07:00
tty.rs Fix selection of empty lines 2018-09-26 18:42:41 +00:00
util.rs Scrollback cleanup 2018-07-21 17:17:41 +00:00
window.rs Improve window.decorations options: (#1241) 2018-09-20 08:24:26 -07:00