mirror of
https://github.com/anthropics/claude-code.git
synced 2026-09-14 19:48:39 +08:00
6 lines
196 B
TypeScript
6 lines
196 B
TypeScript
/**
|
|
* A unified diff's hunk header, `@@ -old[,n] +new[,n] @@`, its two starts
|
|
* captured as `old` and `new`.
|
|
*/
|
|
export const HUNK_HEADER = /^@@ -(?<old>\d+)(?:,\d+)? \+(?<new>\d+)(?:,\d+)? @@/
|