fix: 1.1.25 注释里 profiles/*/ 提前结束块注释导致 SyntaxError

块注释不能写 */,改为 profiles/<name>/。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-09-28 00:47:23 +08:00
1 parent 3d49ccb501
commit b41275891c
1 file changed
+1 -1
+1 -1
View File
@@ -3257,7 +3257,7 @@ function flattenTargetPaths(files) {
return out;
}
/** 用户配置层:官方允许在 profiles/*/cordis.patch.yml 手写 insert,绝不能进 bak/回滚(#43)。 */
/** 用户配置层:官方允许在 profiles/<name>/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);