From 978a882bdb536aa5a130a3b9c6251cca5c0960b3 Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Mon, 9 Mar 2015 10:43:28 +1100 Subject: [PATCH] Fixed backrefences in version number --- src/wappalyzer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wappalyzer.js b/src/wappalyzer.js index 96fd7d82c..5cfa6414b 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -89,7 +89,7 @@ var wappalyzer = (function() { } // Replace back references - version = version.replace('\\' + i, match ? match : ''); + version = version.replace(new RegExp('\\\\' + i, 'g'), match ? match : ''); }); if ( version && this.versions.indexOf(version) < 0 ) {