From 07ecdd8f2693dba2e63fab2e11dac28bf22e2c0a Mon Sep 17 00:00:00 2001 From: suyao Date: Sun, 14 Dec 2025 00:26:02 +0800 Subject: [PATCH] chore: format --- src/main/utils/mcp.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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, '_') } }