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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user