Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/kpdecker/jsdiff
/ isHunkHeader
Function
isHunkHeader
src/patch/parse.ts:44–46 ·
view source on GitHub ↗
(line: string)
Source
from the content-addressed store, hash-verified
42
43
// Matches `@@ ...` hunk header lines.
44
function
isHunkHeader(line: string): boolean {
45
return
(/^@@\s/).test(line);
46
}
47
48
function
parseIndex() {
49
const
index: Partial<StructuredPatch> = {};
Callers
1
parseIndex
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected