MCPcopy Index your code
hub / github.com/kpdecker/jsdiff / isFileHeader

Function isFileHeader

src/patch/parse.ts:39–41  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

37
38 // Matches `--- ...` and `+++ ...` file header lines.
39 function isFileHeader(line: string): boolean {
40 return (/^(---|\+\+\+)\s/).test(line);
41 }
42
43 // Matches `@@ ...` hunk header lines.
44 function isHunkHeader(line: string): boolean {

Callers 2

parseIndexFunction · 0.85
parseHunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected