From 3907e384ce8a58ac208e4ee69c8fb6fba0e1e2d0 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Mon, 6 Jan 2025 12:27:51 +0100 Subject: [PATCH] Update git.ts --- lib/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git.ts b/lib/git.ts index aaf909f..8e68aa7 100644 --- a/lib/git.ts +++ b/lib/git.ts @@ -153,7 +153,7 @@ export async function getCacheDetails(): Promise { * @returns parsed line */ function parseRawFileDiffLine(line: string): RawFileDiff { - const fileMatch = line.match(/^:+(?:(?\d{6}) ){2,}(?:\w{7} ){2,}(?[A-Z])\w*\s+(?.*)$/) + const fileMatch = line.match(/^:+(?:(?\d{6}) ){2,}(?:\w{7,} ){2,}(?[A-Z])\w*\s+(?.*)$/) if (!fileMatch) throw new Error(`Unexpected file line: ${line}`) return {