From c5bb9bc12c6edc10c0560886b6389b809db3ba1b Mon Sep 17 00:00:00 2001 From: TotPeRo Date: Fri, 16 Feb 2018 00:10:02 +0200 Subject: [PATCH] fix analyzeMeta duplicate line (#2096) in analyzeMeta function the r const is declared but never used and in next if is the same code. --- src/wappalyzer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wappalyzer.js b/src/wappalyzer.js index df7e3bd1e..7efe8cc7e 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -450,7 +450,7 @@ class Wappalyzer { const r = new RegExp('(?:name|property)=["\']' + meta + '["\']', 'i'); - if ( new RegExp('(?:name|property)=["\']' + meta + '["\']', 'i').test(matches[0]) ) { + if (r.test(matches[0]) ) { content = matches[0].match(/content=("|')([^"']+)("|')/i); patterns[meta].forEach(pattern => {