Merge pull request #2612 from arkohut/support-py-for-run-code

feat: support py Python for code execution
This commit is contained in:
Timothy Jaeryang Baek 2024-05-27 15:15:48 -07:00 committed by GitHub
commit 9d370c51e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -215,7 +215,7 @@ __builtins__.input = input`);
<div class="p-1">{@html lang}</div>
<div class="flex items-center">
{#if lang === 'python' || (lang === '' && checkPythonCode(code))}
{#if lang.toLowerCase() === 'python' || lang.toLowerCase() === 'py' || (lang === '' && checkPythonCode(code))}
{#if executing}
<div class="copy-code-button bg-none border-none p-1 cursor-not-allowed">Running</div>
{:else}