From c93ce684a81fd27cd259681c25a79e543b14c4f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Fri, 22 May 2015 10:52:12 +0200 Subject: [PATCH] Old jQuery major versions didn't have the trailing .0 in number --- lib/metadata/policies.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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,