Allow \\1?a: version syntax

main
q-- 11 years ago
parent cc2e64d441
commit b2b7609125

@ -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 });