From 79c0f2c35614c7ee7ec187e8af35609fa334dd5f Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 12 Jan 2022 11:18:35 +0100 Subject: [PATCH] Renamed module function name (spelling weekday as one word) --- assets/js/utils/date.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/utils/date.js b/assets/js/utils/date.js index a276d371..025cef70 100644 --- a/assets/js/utils/date.js +++ b/assets/js/utils/date.js @@ -66,14 +66,14 @@ window.App.Utils.Date = (function () { /** * Get the Id of a Weekday using the US week format and day names (Sunday=0) as used in the JS code of the - * application, case insensitive, short and long names supported. + * application, case-insensitive, short and long names supported. * * @param {String} weekDayName The weekday name among Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, * Saturday. * @return {Number} Returns the ID of the weekday. */ - function getWeekDayId(weekDayName) { + function getWeekdayId(weekDayName) { let result; switch (weekDayName.toLowerCase()) { @@ -186,7 +186,7 @@ window.App.Utils.Date = (function () { return { format, - getWeekDayId, + getWeekdayId, sortWeekDictionary, getWeekdayName };