From b2b76091251645dd348d04719266877efe3ecb91 Mon Sep 17 00:00:00 2001 From: q-- Date: Wed, 21 May 2014 09:44:40 +0200 Subject: [PATCH] Allow \\1?a: version syntax --- share/js/wappalyzer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/js/wappalyzer.js b/share/js/wappalyzer.js index 8e6d5bd42..cccecbad7 100644 --- a/share/js/wappalyzer.js +++ b/share/js/wappalyzer.js @@ -78,7 +78,7 @@ var wappalyzer = (function() { if ( matches ) { matches.forEach(function(match, i) { // Parse ternary operator - var ternary = new RegExp('\\\\' + i + '\\?([^:]+):(.+)$').exec(version); + var ternary = new RegExp('\\\\' + i + '\\?([^:]+):(.*)$').exec(version); if ( ternary && ternary.length === 3 ) { w.log({ match: match, i: i, ternary: ternary });