MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isBlankOrComment

Function isBlankOrComment

packages/plugins/openapi/src/sdk/split.ts:73–74  ·  view source on GitHub ↗
(text: string, contentStart: number, lineEnd: number)

Source from the content-addressed store, hash-verified

71
72/** True for a blank (whitespace-only) or comment line. */
73const isBlankOrComment = (text: string, contentStart: number, lineEnd: number): boolean =>
74 contentStart >= lineEnd || text.charCodeAt(contentStart) === HASH;
75
76/**
77 * True when the line opens a block scalar (`key: |`, `key: >-`, etc.), meaning

Callers 2

keyLineStartsAtIndentFunction · 0.85
structuralSplitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected