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

Function collapseVisibleWhitespace

packages/cli/src/batch-transform.ts:701–703  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

699}
700
701function collapseVisibleWhitespace(value: string): string {
702 return value.replace(/\u00a0/g, " ").replace(/\s+/g, " ");
703}
704
705function getStaticRenderableText(node: any): string | null {
706 if (!node) return "";

Callers 2

getStaticRenderableTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected