aboutsummaryrefslogtreecommitdiffstats
path: root/hilite-url/hilite_url.pl
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-05-06 11:55:19 +0000
committerterminaldweller <thabogre@gmail.com>2022-05-06 11:55:19 +0000
commit955fe36c2da5c747da21d19047914cdecc7ddfbb (patch)
tree757de1fd167f1212bd53ae52f8934f67a3b5c9cc /hilite-url/hilite_url.pl
parentadded a very slightly modified irssi-logger (diff)
downloadirssi-scripts-955fe36c2da5c747da21d19047914cdecc7ddfbb.tar.gz
irssi-scripts-955fe36c2da5c747da21d19047914cdecc7ddfbb.zip
update
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);