From 9059770d6ffb0ee0cbc5cf041a16ee8b38479efd Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sat, 5 Apr 2014 11:42:44 +1100 Subject: [PATCH] Excludes field should accept array --- share/js/wappalyzer.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/share/js/wappalyzer.js b/share/js/wappalyzer.js index da8dcca7d..99afbfe89 100644 --- a/share/js/wappalyzer.js +++ b/share/js/wappalyzer.js @@ -389,7 +389,13 @@ var wappalyzer = (function() { } if ( w.apps[app].excludes ) { - excludes.push(w.apps[app].excludes) + if ( typeof w.apps[app].excludes === 'string' ) { + w.apps[app].excludes = [ w.apps[app].excludes ]; + } + + w.apps[app].excludes.forEach(function(excluded) { + excludes.push(excluded); + }); } }