mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 12:02:56 +02:00
Replace gobwas/glob package (#35478)
https://github.com/gobwas/glob is unmaintained and has bugs.
This commit is contained in:
1 parent
688abac5ca
commit
4fe1066a17
29 files changed
+418
-45
No files matched your search
@@ -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