Improve regex clarity

This commit is contained in:
Henry Mercer
2026-05-12 19:06:04 +01:00
parent 6a4e35fad9
commit de3e561d12
10 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -89493,7 +89493,7 @@ var getFileOidsUnderPath = async function(basePath) {
"Cannot list Git OIDs of tracked files."
);
const fileOidMap = {};
const regex = /^[0-9]+ ([0-9a-f]{40}(?:[a-f0-9]{24})?) [0-9]+\t(.+)$/;
const regex = /^[0-9]+ ([0-9a-f]{40}|[0-9a-f]{64}) [0-9]+\t(.+)$/;
for (const line of stdout.split("\n")) {
if (line) {
const match = line.match(regex);