From ecc46c0934f2d296124b3bb609bb572883d5531e Mon Sep 17 00:00:00 2001 From: Sheikyon Date: Tue, 27 Jan 2026 16:38:28 +0100 Subject: [PATCH] Fix linting and formatting issues --- src/whatsapp/normalize.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/whatsapp/normalize.ts b/src/whatsapp/normalize.ts index 1f2d09aa0..4a70289ae 100644 --- a/src/whatsapp/normalize.ts +++ b/src/whatsapp/normalize.ts @@ -9,7 +9,10 @@ const WHATSAPP_GROUP_SUFFIX = "@g.us"; */ function stripWhatsAppTargetPrefixes(value: string): string { // More efficient than a loop: matches "whatsapp:" followed by optional spaces, one or more times. - return value.trim().replace(/^(whatsapp:\s*)+/i, "").trim(); + return value + .trim() + .replace(/^(whatsapp:\s*)+/i, "") + .trim(); } export function isWhatsAppGroupJid(value: string): boolean {