From 961f8714d170e8cce634de8bd5592258f097f348 Mon Sep 17 00:00:00 2001 From: bravoman Date: Mon, 3 Jan 2022 14:18:52 +0100 Subject: [PATCH] fix(etc-hosts): Made path regex match more strict. This got me in a lot of trouble with a file path containing /vhosts/ so made it more strict. Originally proposed in https://github.com/scopatz/nanorc/pull/386 --- etc-hosts.nanorc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etc-hosts.nanorc b/etc-hosts.nanorc index eb8a51ec..a746dd6d 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" @@ -12,4 +12,3 @@ color normal "[.:]" # comments color brightblack "^#.*" -