From bfd4f7fe461ac32b507734e3a368e258c1aacde3 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 22 Jan 2022 13:23:26 +0100 Subject: [PATCH] Another try for link highlighting --- colors-gruvbox-shuber.muttrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/colors-gruvbox-shuber.muttrc b/colors-gruvbox-shuber.muttrc index a38198a..348ab7c 100644 --- a/colors-gruvbox-shuber.muttrc +++ b/colors-gruvbox-shuber.muttrc @@ -73,13 +73,16 @@ color header color108 color234 "^Received:" # some-service.example.com # example.com/ # example.com/datenschutz +# file:///tmp/foo # # Non-examples: # 1.1.1900 # 23.59 # w.l.o.g -color body color142 color234 "([a-z]{3,255}://)?[[:alpha:]]\\.?([-[:alnum:]]+\\.)+[-[:alnum:]]{2,10}(/[[:graph:]]*)?" -color body color142 color234 "file:///[[:graph:]]*" +# team.its +color body color142 color234 "[a-z]{3,255}://[[:graph:]]*" +color body color142 color234 "([-[:alnum:]]+\\.)+[-[:alnum:]]+/[[:graph:]]*" +color body color142 color234 "([-[:alnum:]]+\\.){2,255}[-[:alpha:]]{2,10}" # IPv4 and IPv6 stolen from https://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses color body color142 color234 "((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])" -- 2.39.5