mirror of https://github.com/harness/drone.git
Fix reg exp for extracting binary file stats (#1184)
parent
c5383940bd
commit
3fea99155e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue