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

Function extract

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

Source from the content-addressed store, hash-verified

22const STRING_ARRAY: ReadonlyArray<string> = [];
23
24export function extract(contents: string): string {
25 const match = contents.match(docblockRe);
26 return match ? match[0].trimStart() : '';
27}
28
29export function strip(contents: string): string {
30 const matchResult = contents.match(docblockRe);

Callers 1

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected