Download mods/diff/hooks/git/parse/hunk-header/hunk-header.ts from SaylorTwift/claude-code: direct link, hf CLI and curl.
- Browser
- Download file 196 Bytes
-
https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/git/parse/hunk-header/hunk-header.ts
- Command line
-
hf download hf://SaylorTwift/claude-code/mods/diff/hooks/git/parse/hunk-header/hunk-header.ts
-
curl -L -o hunk-header.ts https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/git/parse/hunk-header/hunk-header.ts
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+)? @@/ | |