mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 06:30:10 +08:00
chore: format
This commit is contained in:
parent
5242cf0c9d
commit
07ecdd8f26
@ -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, '_')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user