From 1efd8ca0b807cc70b1492bfd6ae57a06ea35f81d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=91=E5=BD=B1?= <15079462244@163.com> Date: Mon, 1 Apr 2024 16:18:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20attach=20=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E5=9B=A0=E4=B8=BA?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E6=96=87=E4=BB=B6=E5=90=8E=E7=BC=80=E8=80=8C?= =?UTF-8?q?=E6=89=BE=E4=B8=8D=E5=88=B0=E6=BA=90=E6=96=87=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extension/script/backend/worker/source.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extension/script/backend/worker/source.lua b/extension/script/backend/worker/source.lua index 705d93004..a6ed62c83 100644 --- a/extension/script/backend/worker/source.lua +++ b/extension/script/backend/worker/source.lua @@ -65,6 +65,9 @@ local function covertPath(p) p = knownClientPath[native] knownClientPath[native] = nil end + if not p:match("%.lua$") then + return p .. ".lua" + end return p end