chore: format

This commit is contained in:
suyao 2025-12-14 00:26:02 +08:00
parent 5242cf0c9d
commit 07ecdd8f26
No known key found for this signature in database

View File

@ -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, '_')
}
}