mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 00:20:22 +08:00
fix: 1.1.25 注释里 profiles/*/ 提前结束块注释导致 SyntaxError
块注释不能写 */,改为 profiles/<name>/。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3d49ccb501
commit
38e3bdce70
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user