diff --git a/lib/metadata/policies.js b/lib/metadata/policies.js index a203b1c..8862497 100644 --- a/lib/metadata/policies.js +++ b/lib/metadata/policies.js @@ -389,17 +389,17 @@ var policies = { score = 70; } else if (value.indexOf('1.8.') === 0) { score = 50; - } else if (value.indexOf('1.7.') === 0) { + } else if (value.indexOf('1.7') === 0) { score = 40; - } else if (value.indexOf('1.6.') === 0) { + } else if (value.indexOf('1.6') === 0) { score = 30; - } else if (value.indexOf('1.5.') === 0) { + } else if (value.indexOf('1.5') === 0) { score = 20; - } else if (value.indexOf('1.4.') === 0) { + } else if (value.indexOf('1.4') === 0) { score = 10; - } else if (value.indexOf('1.3.') === 0) { + } else if (value.indexOf('1.3') === 0) { score = 0; - } else if (value.indexOf('1.2.') === 0) { + } else if (value.indexOf('1.2') === 0) { score = 0; } else { debug('Unknown jQuery version "%s"', value); @@ -433,7 +433,7 @@ var policies = { "jQueryFunctionsUsed": { "tool": "jsExecutionTransformer", "label": "jQuery usage", - "message": "
This is the number of different jQuery functions called on load. This rule is not trying to blame you for using jQuery too much, but the opposite.
If only a few functions are used, why not trying to get rid of jQuery? Have a look at http://youmightnotneedjquery.com.
", + "message": "This is the number of different core jQuery functions called on load. This rule is not trying to blame you for using jQuery too much, but the opposite.
If only a few functions are used, why not trying to get rid of jQuery? Have a look at http://youmightnotneedjquery.com.
", "isOkThreshold": 15, "isBadThreshold": 6, "isAbnormalThreshold": 0,