5DKNE57725UBCU5Z325JA2T3VTMW6RTIQJKZTUQNCH7VTTES2LHQC
const changePattern = /\d\.\s([A-Za-z]+)\sin\s(.*):/g;
// Big complicated regex needs to match both the 'Edit in src/repository.ts' format
// and the 'File addition: "yarn.lock" format.
const changePattern = /\d\.\s(?:(?:([A-Za-z]+)\sin\s)(.*):|(.*):\s"(\S+)")/g;
const [, operation, path] = match;
// Since their are two formats the operation and path can be in, there are four
// capture groups for two properties. These two statements take whichever is defined.
const operation = match[1] ?? match[3];
const path = match[2] ?? match[4];