From 3c7c7f53ece8c9dc245be7cd12ee7e03dc847a0a Mon Sep 17 00:00:00 2001 From: hugolxt <87241914+hugolxt@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:49:42 +0100 Subject: [PATCH] replace a by 1 in time component (#38) --- src/components/primitives/Time.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/primitives/Time.tsx b/src/components/primitives/Time.tsx index d32b8fec..ad2e3bb3 100644 --- a/src/components/primitives/Time.tsx +++ b/src/components/primitives/Time.tsx @@ -13,6 +13,7 @@ export default function Time({ timestamp, prefix }: TimeProps) { return then .replace(/in\s/, prefix ? `${prefix} ` : "In ") + .replace(/a\s/, "1 ") .replace(/\bminute(s?)\b/g, "m") .replace(/\bsecond(s?)\b/g, "s") .replace(/\bhour(s?)\b/g, (_match, plural) => (plural ? "hours" : "hour"))