mirror of
https://github.com/anthropics/claude-code.git
synced 2026-10-17 05:40:50 +08:00
12 lines
368 B
TypeScript
12 lines
368 B
TypeScript
/**
|
|
* `--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`(?<files>\d+) files? changed`,
|
|
String.raw`(?:, (?<added>\d+) insertions?\(\+\))?`,
|
|
String.raw`(?:, (?<removed>\d+) deletions?\(-\))?`,
|
|
].join(''),
|
|
)
|