aboutsummaryrefslogtreecommitdiff
path: root/alacritty
diff options
context:
space:
mode:
authorRaphael Nestler <raphael.nestler@gmail.com>2021-04-30 18:13:29 +0200
committerGitHub <noreply@github.com>2021-04-30 16:13:29 +0000
commit78e04445c755c1276af037dda4318b3a61af3f37 (patch)
tree99c340c2950c5be244d450c935a70038139c0769 /alacritty
parentedf0faf98fe69d79bdc4798fb574a46d9956156a (diff)
downloadr-alacritty-78e04445c755c1276af037dda4318b3a61af3f37.tar.gz
r-alacritty-78e04445c755c1276af037dda4318b3a61af3f37.tar.bz2
r-alacritty-78e04445c755c1276af037dda4318b3a61af3f37.zip
Add support for magnet URLs
Diffstat (limited to 'alacritty')
-rw-r--r--alacritty/src/config/ui_config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/config/ui_config.rs b/alacritty/src/config/ui_config.rs
index 135d12c8..4b520640 100644
--- a/alacritty/src/config/ui_config.rs
+++ b/alacritty/src/config/ui_config.rs
@@ -23,7 +23,7 @@ use crate::config::window::WindowConfig;
/// Regex used for the default URL hint.
#[rustfmt::skip]
-const URL_REGEX: &str = "(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
+const URL_REGEX: &str = "(magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
[^\u{0000}-\u{001F}\u{007F}-\u{009F}<>\" {-}\\^⟨⟩`]+";
#[derive(ConfigDeserialize, Debug, PartialEq)]