From: Stefan Huber Date: Sat, 22 Jan 2022 12:23:26 +0000 (+0100) Subject: Another try for link highlighting X-Git-Url: https://git.sthu.org/?p=mutt-gruvbox.git;a=commitdiff_plain;h=bfd4f7fe461ac32b507734e3a368e258c1aacde3 Another try for link highlighting --- 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])"