Code Duplication    Length = 19-19 lines in 2 locations

src/server/public/abejs/libs/moment-with-locales.js 2 locations

@@ 9302-9320 (lines=19) @@
9299
        yy : '%d години'
9300
    },
9301
    ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
9302
    ordinal : function (number) {
9303
        var lastDigit = number % 10,
9304
            last2Digits = number % 100;
9305
        if (number === 0) {
9306
            return number + '-ев';
9307
        } else if (last2Digits === 0) {
9308
            return number + '-ен';
9309
        } else if (last2Digits > 10 && last2Digits < 20) {
9310
            return number + '-ти';
9311
        } else if (lastDigit === 1) {
9312
            return number + '-ви';
9313
        } else if (lastDigit === 2) {
9314
            return number + '-ри';
9315
        } else if (lastDigit === 7 || lastDigit === 8) {
9316
            return number + '-ми';
9317
        } else {
9318
            return number + '-ти';
9319
        }
9320
    },
9321
    week : {
9322
        dow : 1, // Monday is the first day of the week.
9323
        doy : 7  // The week that contains Jan 1st is the first week of the year.
@@ 5116-5134 (lines=19) @@
5113
        yy : '%d години'
5114
    },
5115
    ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
5116
    ordinal : function (number) {
5117
        var lastDigit = number % 10,
5118
            last2Digits = number % 100;
5119
        if (number === 0) {
5120
            return number + '-ев';
5121
        } else if (last2Digits === 0) {
5122
            return number + '-ен';
5123
        } else if (last2Digits > 10 && last2Digits < 20) {
5124
            return number + '-ти';
5125
        } else if (lastDigit === 1) {
5126
            return number + '-ви';
5127
        } else if (lastDigit === 2) {
5128
            return number + '-ри';
5129
        } else if (lastDigit === 7 || lastDigit === 8) {
5130
            return number + '-ми';
5131
        } else {
5132
            return number + '-ти';
5133
        }
5134
    },
5135
    week : {
5136
        dow : 1, // Monday is the first day of the week.
5137
        doy : 7  // The week that contains Jan 1st is the first week of the year.