/** * `--shortstat`'s one line, ` 3 files changed, 10 insertions(+), 2 * deletions(-)`, either tail optional; the counts captured by name. */ export const SHORTSTAT_PATTERN = new RegExp( [ String.raw`(?\d+) files? changed`, String.raw`(?:, (?\d+) insertions?\(\+\))?`, String.raw`(?:, (?\d+) deletions?\(-\))?`, ].join(''), )