diff --git a/src/wappalyzer.js b/src/wappalyzer.js index 42cea86f2..d2b1a96bb 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -514,7 +514,7 @@ function addDetected(app, pattern, type, value, key) { if ( versions.length ) { // Use the longest detected version number - app.version = versions.reduce((a, b) => a.length > b.length ? a : b)[0]; + app.version = versions.reduce((a, b) => a.length > b.length ? a : b); } } }