diff options
Diffstat (limited to 'lib/bzpage.js')
-rw-r--r-- | lib/bzpage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bzpage.js b/lib/bzpage.js index 96ad655..2278209 100644 --- a/lib/bzpage.js +++ b/lib/bzpage.js @@ -177,10 +177,10 @@ BZPage.prototype.getInstalledPackages = function getInstalledPackages(cfg) { if ("enabledPackages" in cfg.gJSONData.configData) { var epObject = cfg.gJSONData.configData.enabledPackages; if (this.hostname in epObject) { - enabledPackages = enabledPackages.concat(epObject[this.hostname].split(/[, ]/)); + enabledPackages = enabledPackages.concat(epObject[this.hostname].split(/[,\s]+/)); } if ("any" in epObject) { - enabledPackages = enabledPackages.concat(epObject.any.split(/[, ]/)); + enabledPackages = enabledPackages.concat(epObject.any.split(/[,\s]+/)); } } @@ -739,7 +739,7 @@ BZPage.prototype.idContainsWord = function idContainsWord (id, str) { // For those who don't have particular element at all or if it is empty return false; } - return (util.isInList(str, kwd.trim().split(/,\s*/))); + return (util.isInList(str, kwd.trim().split(/[,\s]+/))); }; /** |