simplify case statement, update documentation

This commit is contained in:
El RIDO 2019-11-02 17:18:22 +01:00
parent b23fd48d49
commit 8cf0c86ebb
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
6 changed files with 5 additions and 5 deletions

View file

@ -629,7 +629,6 @@ jQuery.PrivateBin = (function($, RawDeflate) {
case 'pl':
return n === 1 ? 0 : (n % 10 >= 2 && n %10 <=4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);
case 'ru':
return n % 10 === 1 && n % 100 !== 11 ? 0 : (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);
case 'uk':
return n % 10 === 1 && n % 100 !== 11 ? 0 : (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);
case 'sl':