From e1330408ad8f09095187c00fa38107f7e1f20de2 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 4 Oct 2017 14:38:30 +0300 Subject: [PATCH] minor generalization... Signed-off-by: Alex A. Naanou --- .npmignore | 1 + features.js | 3 ++- package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.npmignore b/.npmignore index e672bc2..73aa153 100755 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,4 @@ +.npm* *.vim *.sw[po] .git diff --git a/features.js b/features.js index e4295f5..1690319 100755 --- a/features.js +++ b/features.js @@ -337,7 +337,8 @@ var FeatureSetProto = { features .filter(function(f){ return !!that[f].exclusive }) .forEach(function(k){ - (that[k].exclusive || []) + var e = that[k].exclusive + ;((e instanceof Array ? e : [e]) || []) .forEach(function(e){ // skip tags not explicitly requested... if(tag != '*' && tag.indexOf(e) < 0){ diff --git a/package.json b/package.json index 4e1e4b2..ee384b5 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-features", - "version": "3.2.7", + "version": "3.2.3", "description": "", "main": "features.js", "scripts": {