aboutsummaryrefslogtreecommitdiffstats
path: root/hilite-url
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hilite-url/hilite_url.pl6
1 files 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);