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