MCPcopy
hub / github.com/TriliumNext/Trilium / trim

Method trim

packages/pdfjs-viewer/viewer/viewer.mjs:2434–2436  ·  view source on GitHub ↗
(text, re)

Source from the content-addressed store, hash-verified

2432 return false;
2433 }
2434 function trim(text, re) {
2435 return text.replace(re, "");
2436 }
2437 function makeIndent(blank) {
2438 let value = blank.replace(RE_BLANK_LINES, "\n");
2439 let length = RE_INDENT.exec(blank)[1].length;

Callers 15

overlayAttributesFunction · 0.80
#cancelMethod · 0.80
#saveMethod · 0.80
editAltTextMethod · 0.80
#saveMethod · 0.80
#walkMethod · 0.80
_initializeMetadataFunction · 0.80
_createFormViewMethod · 0.80
_defineConvertersMethod · 0.80
extractDelimitersFunction · 0.80
_mathBetweenPositionsMethod · 0.80
equationMethod · 0.80

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected