Skip to content

Commit 443898a

Browse files
ordinalDate: replace arrow function with anonymous functions.
1 parent d850d74 commit 443898a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filters/ordinalDate/ordinalDate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ angular.module( 'angularUtils.filters.ordinalDate', [] )
1414
var dayOfMonth = date.getDate();
1515
var suffix = getOrdinalSuffix(dayOfMonth);
1616

17-
format = format.replace(regex, (match) => {
17+
format = format.replace(regex, function (match) {
1818
return match === "d" ? suffix : match;
1919
});
2020
return $filter('date')(date, format);

0 commit comments

Comments
 (0)