|
@@ -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": "<p>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.</p><p>If only a few functions are used, why not trying to get rid of jQuery? Have a look at <a href=\"http://youmightnotneedjquery.com/\" target=\"_blank\">http://youmightnotneedjquery.com</a>.</p>",
|
|
|
+ "message": "<p>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.</p><p>If only a few functions are used, why not trying to get rid of jQuery? Have a look at <a href=\"http://youmightnotneedjquery.com/\" target=\"_blank\">http://youmightnotneedjquery.com</a>.</p>",
|
|
|
"isOkThreshold": 15,
|
|
|
"isBadThreshold": 6,
|
|
|
"isAbnormalThreshold": 0,
|