mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 22:52:08 +08:00
chore: format
This commit is contained in:
parent
5242cf0c9d
commit
07ecdd8f26
@ -46,9 +46,7 @@ function transliterateToAscii(text: string): string {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error('Transliteration failed, falling back to ASCII-only mode', { text, error })
|
logger.error('Transliteration failed, falling back to ASCII-only mode', { text, error })
|
||||||
// Fallback: keep only ASCII alphanumeric, underscores, and hyphens for consistency
|
// Fallback: keep only ASCII alphanumeric, underscores, and hyphens for consistency
|
||||||
return text
|
return text.toLowerCase().replace(/[^a-z0-9_-]/g, '_')
|
||||||
.toLowerCase()
|
|
||||||
.replace(/[^a-z0-9_-]/g, '_')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user