summaryrefslogtreecommitdiff
path: root/node_modules/moment/src/lib/locale/ordinal.js
blob: db44f33ac22b177794ba888b9a7aa2a649251272 (plain) (blame)
1
2
3
4
5
6
7
8
var defaultOrdinal = '%d',
    defaultDayOfMonthOrdinalParse = /\d{1,2}/;

export { defaultOrdinal, defaultDayOfMonthOrdinalParse };

export function ordinal(number) {
    return this._ordinal.replace('%d', number);
}