MCPcopy
hub / github.com/gildas-lormeau/SingleFile / minifyText

Function minifyText

lib/single-file-extension-editor.js:3244–3246  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

3242 }
3243
3244 function minifyText(text) {
3245 return text.replace(/[\n\t\s]+/g, " ");
3246 }
3247
3248 function isAncestor(element, otherElement) {
3249 return otherElement.parentElement && (element == otherElement.parentElement || isAncestor(element, otherElement.parentElement));

Callers 2

initConstantsFunction · 0.70
getEmbedScriptFunction · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected