1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-15 21:28:15 +00:00

Replace gobwas/glob package (#35478)

https://github.com/gobwas/glob is unmaintained and has bugs.
This commit is contained in:
wxiaoguang
2025-09-14 02:01:00 +08:00
committed by GitHub
parent 688abac5ca
commit 4fe1066a17
29 changed files with 418 additions and 45 deletions

View File

@@ -16,7 +16,7 @@ async function loadGlobTestData(): Promise<{caseNames: string[], caseDataMap: Re
const key = parts[0].trim();
let value = parts[1].trim();
value = value.substring(1, value.length - 1); // remove quotes
value = value.replace(/\\\\/g, '\\').replaceAll(/\\\//g, '/');
value = value.replace(/\\\//g, '/').replace(/\\\\/g, '\\');
caseDataMap[key] = value;
if (key.startsWith('pattern_')) caseNameMap[key.substring('pattern_'.length)] = true;
}