diff --git a/features.js b/features.js index 013fbe2..db597c4 100755 --- a/features.js +++ b/features.js @@ -103,11 +103,18 @@ module.FeatureProto = { isApplicable: function(actions){ return true }, - getPriority: function(){ + getPriority: function(human_readable){ var res = this.priority || 0 - return res == 'high' ? 99 + res = res == 'high' ? 99 : res == 'low' ? -99 : res == 'medium' ? 0 + : res == 'normal' ? 0 + : res + return human_readable ? + (res == 99 ? 'high' + : res == 0 ? 'normal' + : res == -99 ? 'low' + : res) : res }, diff --git a/package.json b/package.json index 1f75993..00082eb 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-features", - "version": "3.2.4", + "version": "3.2.5", "description": "", "main": "features.js", "scripts": {