Merge pull request #558 from q--/patch-1

Allow \\1?a: version syntax
main
Elbert Alias 11 years ago
commit 9146cc8e54

@ -78,7 +78,7 @@ var wappalyzer = (function() {
if ( matches ) { if ( matches ) {
matches.forEach(function(match, i) { matches.forEach(function(match, i) {
// Parse ternary operator // Parse ternary operator
var ternary = new RegExp('\\\\' + i + '\\?([^:]+):(.+)$').exec(version); var ternary = new RegExp('\\\\' + i + '\\?([^:]+):(.*)$').exec(version);
if ( ternary && ternary.length === 3 ) { if ( ternary && ternary.length === 3 ) {
w.log({ match: match, i: i, ternary: ternary }); w.log({ match: match, i: i, ternary: ternary });