We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d850d74 commit 443898aCopy full SHA for 443898a
src/filters/ordinalDate/ordinalDate.js
@@ -14,7 +14,7 @@ angular.module( 'angularUtils.filters.ordinalDate', [] )
14
var dayOfMonth = date.getDate();
15
var suffix = getOrdinalSuffix(dayOfMonth);
16
17
- format = format.replace(regex, (match) => {
+ format = format.replace(regex, function (match) {
18
return match === "d" ? suffix : match;
19
});
20
return $filter('date')(date, format);
0 commit comments