claude-code / mods /diff /hooks /git /parse /hunk-header /hunk-header.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
00080b0 verified
Raw
History Blame Contribute Delete
196 Bytes
/**
* 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+)? @@/