MCPcopy Create free account
hub / github.com/donghaxkim/react-rewrite / needsBoundarySpace

Function needsBoundarySpace

packages/cli/src/transform.ts:801–805  ·  view source on GitHub ↗
(previousText: string, nextText: string, sourceBetween: string)

Source from the content-addressed store, hash-verified

799}
800
801function needsBoundarySpace(previousText: string, nextText: string, sourceBetween: string): boolean {
802 if (!previousText || !nextText) return false;
803 if (/\s$/.test(previousText) || /^\s/.test(nextText)) return false;
804 return /\s/.test(sourceBetween);
805}
806
807function getRenderedElementText(node: any, source?: string, lineStarts?: number[]): string {
808 const children = node.children;

Callers 2

getRenderedElementTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected