mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-30 17:50: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
b41275891c
1 file changed
+1
-1
+1
-1
@@ -3257,7 +3257,7 @@ function flattenTargetPaths(files) {
|
|||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 用户配置层:官方允许在 profiles/*/cordis.patch.yml 手写 insert,绝不能进 bak/回滚(#43)。 */
|
/** 用户配置层:官方允许在 profiles/<name>/cordis.patch.yml 手写 insert,绝不能进 bak/回滚(#43)。 */
|
||||||
export function isUserProfilePatchFile(fp) {
|
export function isUserProfilePatchFile(fp) {
|
||||||
const n = String(fp || "").replace(/\\/g, "/").toLowerCase();
|
const n = String(fp || "").replace(/\\/g, "/").toLowerCase();
|
||||||
return /\/profiles\/[^/]+\/cordis\.patch\.yml$/i.test(n);
|
return /\/profiles\/[^/]+\/cordis\.patch\.yml$/i.test(n);
|
||||||
|
|||||||
Reference in new issue
Block a user