From 955fe36c2da5c747da21d19047914cdecc7ddfbb Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 6 May 2022 16:25:19 +0430 Subject: update --- hilite-url/hilite_url.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hilite-url/hilite_url.pl b/hilite-url/hilite_url.pl index 29cd312..38ffda3 100644 --- a/hilite-url/hilite_url.pl +++ b/hilite-url/hilite_url.pl @@ -29,8 +29,10 @@ sub hilite_url { $color = sprintf("\e[%sm", $color); # Add Colours - # $data =~ s/(https?:\/\/[^\s]+)/$color\1\e[00m/g; - $data =~ s/(https?:\/\/[^\s]+)/\e[07m\1\e[07m/g; + # $data =~ s/(https?:\/\/[^\s]+)/\e[07m\1\e[07m/g; + # $data =~ s/(https?:\/\/[^\s]+(?!\s+))/\e[07m\1\e[07m/g; + # $data =~ s/(https?:\/\/\S*)/\e[07m\1\e[27m/g; + $data =~ s,((https?|ftp|file)://\S+),\e[07m\1\e[27m,g; # Let it flow Irssi::signal_continue($server, $data, $nick, $mask, $target); -- cgit v1.2.3