From 3e75dc64f391316df63a99fbef3e0df5bf7b9350 Mon Sep 17 00:00:00 2001 From: Yash Kumar Date: Fri, 16 Oct 2026 16:04:26 +0530 Subject: [PATCH] Update packages/server/src/utils/notifications/utils.ts Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- packages/server/src/utils/notifications/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/utils/notifications/utils.ts b/packages/server/src/utils/notifications/utils.ts index 506713352..a5603d975 100644 --- a/packages/server/src/utils/notifications/utils.ts +++ b/packages/server/src/utils/notifications/utils.ts @@ -110,7 +110,7 @@ export const formatTelegramErrorMessage = (errorMessage: string) => { if (escaped.length <= limit) return escaped; let end = limit; const ampIdx = escaped.lastIndexOf("&", end); - if (ampIdx !== -1 && escaped.indexOf(";", ampIdx) > end) { + if (ampIdx !== -1 && escaped.indexOf(";", ampIdx) >= end) { end = ampIdx; } if (