mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
4102fc994a
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)))`. |
||
---|---|---|
.. | ||
grid | ||
renderer | ||
term | ||
ansi.rs | ||
cli.rs | ||
config.rs | ||
display.rs | ||
event.rs | ||
event_loop.rs | ||
index.rs | ||
input.rs | ||
lib.rs | ||
locale.rs | ||
logging.rs | ||
macros.rs | ||
main.rs | ||
meter.rs | ||
selection.rs | ||
sync.rs | ||
tty.rs | ||
util.rs | ||
window.rs |