MCPcopy Create free account
hub / github.com/InverseUI/InverseUI-Recorder / normalizeWhiteSpace

Function normalizeWhiteSpace

util/playwright_selector.js:168–170  ·  view source on GitHub ↗

* Normalize whitespace in text (from stringUtils)

(text)

Source from the content-addressed store, hash-verified

166 * Normalize whitespace in text (from stringUtils)
167 */
168function normalizeWhiteSpace(text) {
169 return text.replace(/\s+/g, ' ').trim();
170}
171
172/**
173 * Get element text content (from selectorUtils.ts lines 65-99)

Callers 2

elementTextFunction · 0.85
getElementLabelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected