From 1fd3bb55f0f668953dbb9cb4abfd7511a496e205 Mon Sep 17 00:00:00 2001 From: bravoman Date: Mon, 3 Jan 2022 14:18:52 +0100 Subject: [PATCH] Made etc-hosts path regex match more strict. This got me in a lot of trouble with a file path containing /vhosts/ so made it more strict. --- etc-hosts.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc-hosts.nanorc b/etc-hosts.nanorc index eb8a51e..aee54fd 100644 --- a/etc-hosts.nanorc +++ b/etc-hosts.nanorc @@ -1,5 +1,5 @@ ## Make /etc/hosts nicer to read, see `man hosts 5` to see the format -syntax "/etc/hosts" "hosts" +syntax "/etc/hosts" "^/etc/hosts$" # IPv4 color yellow "^[0-9\.]+\s"