Skip to content

Commit

Permalink
[misc] Make code ES6 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Dec 26, 2023
1 parent 0f0195f commit 63fe479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/locale/ku-kmr.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export default moment.defineLocale('ku-kmr', {
yy: processRelativeTime,
},
dayOfMonthOrdinalParse: /\d{1,2}(?:yê|ê|\.)/,
ordinal: (num, period) => {
let p = period.toLowerCase();
ordinal: function (num, period) {
var p = period.toLowerCase();
if (p.includes('w') || p.includes('m')) return num + '.';

return num + ezafeNumSuffix(num);
Expand Down

0 comments on commit 63fe479

Please sign in to comment.