From 38e3bdce706b954fc045b33bef657904597ed244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=AB=E6=88=91=E5=B0=8F=E6=9D=A8=E5=90=8C=E5=AD=A6?= <188421097+HunYiSage@users.noreply.github.com> Date: Mon, 28 Sep 2026 00:47:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201.1.25=20=E6=B3=A8=E9=87=8A=E9=87=8C=20p?= =?UTF-8?q?rofiles/*/=20=E6=8F=90=E5=89=8D=E7=BB=93=E6=9D=9F=E5=9D=97?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E5=AF=BC=E8=87=B4=20SyntaxError?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 块注释不能写 */,改为 profiles//。 Co-authored-by: Cursor --- lib/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core.js b/lib/core.js index 4f017da..bf9e33c 100644 --- a/lib/core.js +++ b/lib/core.js @@ -3257,7 +3257,7 @@ function flattenTargetPaths(files) { return out; } -/** 用户配置层:官方允许在 profiles/*/cordis.patch.yml 手写 insert,绝不能进 bak/回滚(#43)。 */ +/** 用户配置层:官方允许在 profiles//cordis.patch.yml 手写 insert,绝不能进 bak/回滚(#43)。 */ export function isUserProfilePatchFile(fp) { const n = String(fp || "").replace(/\\/g, "/").toLowerCase(); return /\/profiles\/[^/]+\/cordis\.patch\.yml$/i.test(n);