diff --git a/src/main/utils/mcp.ts b/src/main/utils/mcp.ts index 12b58e6b6..8f3260b5a 100644 --- a/src/main/utils/mcp.ts +++ b/src/main/utils/mcp.ts @@ -46,9 +46,7 @@ function transliterateToAscii(text: string): string { } catch (error) { logger.error('Transliteration failed, falling back to ASCII-only mode', { text, error }) // Fallback: keep only ASCII alphanumeric, underscores, and hyphens for consistency - return text - .toLowerCase() - .replace(/[^a-z0-9_-]/g, '_') + return text.toLowerCase().replace(/[^a-z0-9_-]/g, '_') } }