MCPcopy
hub / github.com/jestjs/jest / strip

Function strip

packages/jest-docblock/src/index.ts:29–33  ·  view source on GitHub ↗
(contents: string)

Source from the content-addressed store, hash-verified

27}
28
29export function strip(contents: string): string {
30 const matchResult = contents.match(docblockRe);
31 const match = matchResult?.[0];
32 return match == null ? contents : contents.slice(match.length);
33}
34
35export function parse(docblock: string): Pragmas {
36 return parseWithComments(docblock).pragmas;

Callers

nothing calls this directly

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected