diff options
author | Christian Duerr <contact@christianduerr.com> | 2023-10-09 15:32:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 17:32:51 +0400 |
commit | e1859e80f6196da6f52aacf8829c039378e13275 (patch) | |
tree | 8be0102781e22e38aa1ff93952cb7610edf8d798 /alacritty_terminal/Cargo.toml | |
parent | e07bf6f24a7fa7438dd757d6e761c100dd920d68 (diff) | |
download | alacritty-e1859e80f6196da6f52aacf8829c039378e13275.tar.gz alacritty-e1859e80f6196da6f52aacf8829c039378e13275.zip |
Fix regex patterns allowing for empty strings
This patch changes the mode we search for patterns which allow an empty
string, by anchoring all searches. As a result we will match the longest
possible match when multiple patterns are present (like `;*|rust`),
instead of using the leftmost pattern only.
This is only possible with empty matches since our parser is reset on
every byte anyway, so anchoring the search makes no difference.
Fixes #7276.
Diffstat (limited to 'alacritty_terminal/Cargo.toml')
0 files changed, 0 insertions, 0 deletions