From 0d0c17f41f474ddfa3cbd62c1b43ac5ccc0d231f Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sat, 9 Jul 2022 16:40:05 +0300 Subject: [PATCH] tweak humanised time strings --- src/utilities/Util.js | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/utilities/Util.js b/src/utilities/Util.js index a463bfb..102d72b 100644 --- a/src/utilities/Util.js +++ b/src/utilities/Util.js @@ -17,21 +17,22 @@ const Constants = { const StartQuotes = Object.keys(Constants.QuotePairs); const QuoteMarks = StartQuotes + Object.values(Constants.QuotePairs); -const humaniser = humaniseDuration.humanizer({ - language: 'short', - languages: { - short: { - y: () => "y", - mo: () => "mo", - w: () => "w", - d: () => "d", - h: () => "h", - m: () => "m", - s: () => "s", - ms: () => "ms" - } - } -}); +const humaniser = humaniseDuration; +// const humaniser = humaniseDuration.humanizer({ +// language: 'short', +// languages: { +// short: { +// y: () => "y", +// mo: () => "mo", +// w: () => "w", +// d: () => "d", +// h: () => "h", +// m: () => "m", +// s: () => "s", +// ms: () => "ms" +// } +// } +// }); const has = (o, k) => Object.prototype.hasOwnProperty.call(o, k);