Update packages/server/src/utils/notifications/utils.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Yash Kumar
2026-10-16 16:04:26 +05:30
committed by GitHub
parent 7430afd701
commit 3e75dc64f3
@@ -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 (