From ae6b376a75a21c9ff592ea402640a15e64f8e45c Mon Sep 17 00:00:00 2001 From: Hugo Xu Date: Wed, 11 Apr 2018 09:28:10 -0600 Subject: [PATCH] Fix RegExp escape (#3700) --- 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 7c801f09f..098fced62 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|ip6-all(?:nodes|routers)|local|localhost|localhost\.localdomain)\b/, reLocalIp = /^(?:0\.0\.0\.0|127\.0\.0\.1|::1|fe80::1%lo0)/, line, c, pos, lineIter = new this.LineIterator(this.processDirectives(rawText));