Skip to content

Commit

Permalink
revert autofixes
Browse files Browse the repository at this point in the history
  • Loading branch information
olegfedak committed Jul 11, 2024
1 parent 8c87f79 commit 42994e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var russianPluralGroups = function (n) {
if (lastTwo !== 11 && end === 1) {
return 0;
}
if (end >= 2 && end <= 4 && !(lastTwo >= 12 && lastTwo <= 14)) {
if (2 <= end && end <= 4 && !(lastTwo >= 12 && lastTwo <= 14)) {
return 1;
}
return 2;
Expand Down Expand Up @@ -73,7 +73,7 @@ var defaultPluralRules = {
polish: function (n) {
if (n === 1) { return 0; }
var end = n % 10;
return end >= 2 && end <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2;
return 2 <= end && end <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2;
},
icelandic: function (n) { return (n % 10 !== 1 || n % 100 === 11) ? 1 : 0; },
slovenian: function (n) {
Expand Down

0 comments on commit 42994e4

Please sign in to comment.