fix: more accurate

This commit is contained in:
suyao 2025-10-08 07:08:19 +08:00
parent 651e9a529e
commit 9f1c8f2c17
No known key found for this signature in database

View File

@ -153,8 +153,8 @@ export const CodeBlockView: React.FC<Props> = memo(({ children, language, onSave
setIsRunning(true)
setExecutionResult(null)
const isPython = language === 'python'
const isJavaScript = ['javascript', 'js', 'typescript', 'ts'].includes(language.toLowerCase())
const isPython = ['python', 'py'].includes(language.toLowerCase())
const isJavaScript = ['javascript', 'js'].includes(language.toLowerCase())
if (isPython) {
pyodideService