aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/src/lib/locale/ordinal.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/moment/src/lib/locale/ordinal.js')
-rw-r--r--library/moment/src/lib/locale/ordinal.js7
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);
+}
+