Merge pull request #525 from lcherpit/apps_excludes_fix

Fix: Refactoring of "Excludes rules" processing
main
Elbert Alias 11 years ago
commit 23c3cc5860

@ -387,7 +387,10 @@ var wappalyzer = (function() {
if ( !apps[app].detected ) { if ( !apps[app].detected ) {
delete apps[app]; delete apps[app];
} }
}
// Exclude app in detected apps only
for ( app in apps ) {
if (w.apps[app].excludes ) { if (w.apps[app].excludes ) {
if ( typeof w.apps[app].excludes === 'string' ) { if ( typeof w.apps[app].excludes === 'string' ) {
w.apps[app].excludes = [ w.apps[app].excludes ]; w.apps[app].excludes = [ w.apps[app].excludes ];