Apply suggestion from @ellipsis-dev[bot]

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
This commit is contained in:
Louis 2025-08-14 10:55:49 +07:00 committed by GitHub
parent 8c28f9b6a6
commit 83bb765bcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,5 +157,5 @@ export function formatDuration(startTime: number, endTime?: number): string {
}
export function sanitizeModelId(modelId: string): string {
return modelId.replace(/[^a-zA-Z0-9/_\-.]/g, '').replace(".", "_")
return modelId.replace(/[^a-zA-Z0-9/_\-.]/g, '').replace(/\./g, "_")
}