aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2019-01-04 16:47:20 +0100
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-01-05 20:49:39 +0000
commit873771fa59a69b0f949edc73531fc6809f6f82e4 (patch)
tree25744ee49d901a2e7a9e8f9d91b1e16650f823b8 /src/lib.rs
parentb6a5ba21a130110c47d9dc43b3d6662051ba22b5 (diff)
downloadalacritty-873771fa59a69b0f949edc73531fc6809f6f82e4.tar.gz
alacritty-873771fa59a69b0f949edc73531fc6809f6f82e4.zip
Improve URL detection with special characters
Various special characters and character combinations were not handled correctly with URL detection. All these instances have been resolved and covered by various tests to prevent future regressions. Notable fixes include single quotes working more properly now (like `'https://example.org'`) and IPv6 URL support. Since URL detection is now more than just a few lines of code and it's mostly unrelated to the `Term`, it has also been extracted into the `src/url.rs` file together with all URL-related tests.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index d6873f96..f99510f2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -46,6 +46,7 @@ pub mod term;
pub mod tty;
pub mod util;
pub mod window;
+mod url;
use std::ops::Mul;