diff options
Diffstat (limited to 'node_modules/moment/src/lib/locale/ordinal.js')
-rw-r--r-- | node_modules/moment/src/lib/locale/ordinal.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/moment/src/lib/locale/ordinal.js b/node_modules/moment/src/lib/locale/ordinal.js new file mode 100644 index 0000000..db44f33 --- /dev/null +++ b/node_modules/moment/src/lib/locale/ordinal.js @@ -0,0 +1,8 @@ +var defaultOrdinal = '%d', + defaultDayOfMonthOrdinalParse = /\d{1,2}/; + +export { defaultOrdinal, defaultDayOfMonthOrdinalParse }; + +export function ordinal(number) { + return this._ordinal.replace('%d', number); +} |