From f64d703ba0a2baa9c8366f05117078380675189e Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 1 May 2018 18:29:58 -0400 Subject: [PATCH] fix quirks in parsing of Steven Black's hosts files --- src/js/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/storage.js b/src/js/storage.js index 91cbf893d..627d6a7e9 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -797,7 +797,7 @@ staticExtFilteringEngine = this.staticExtFilteringEngine, reIsWhitespaceChar = /\s/, reMaybeLocalIp = /^[\d:f]/, - reIsLocalhostRedirect = /\s+(?:0\.0\.0\.0|broadcasthost|ip6-all(?:nodes|routers)|local|localhost|localhost\.localdomain)\b/, + reIsLocalhostRedirect = /\s+(?:0\.0\.0\.0|broadcasthost|localhost|local|ip6-\w+)\b/, reLocalIp = /^(?:0\.0\.0\.0|127\.0\.0\.1|::1|fe80::1%lo0)/, line, c, pos, lineIter = new this.LineIterator(this.processDirectives(rawText));