Fix reg exp for extracting binary file stats (#1184)

pull/3497/head
Darko Draskovic 2024-04-05 10:40:56 +00:00 committed by Harness
parent c5383940bd
commit 3fea99155e
1 changed files with 2 additions and 1 deletions

View File

@ -431,7 +431,8 @@ func getChangeInfoTypes(
var insertionsDeletionsRegex = regexp.MustCompile(`(\d+|-)\t(\d+|-)\t(.+)`)
// Will match "0\t0\tREADME.md => README_new.md" and extract README_new.md.
var renameRegexWithArrow = regexp.MustCompile(`\d+\t\d+\t.+\s=>\s(.+)`)
// Will match "-\t-\tfile_name.bin => file_name_new.bin" and extract file_name_new.bin.
var renameRegexWithArrow = regexp.MustCompile(`(?:\d+|-)\t(?:\d+|-)\t.+\s=>\s(.+)`)
func getChangeInfoChanges(
ctx context.Context,