MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / copyStyle

Function copyStyle

static/plugins/pdfmake/pdfmake.js:78992–79003  ·  view source on GitHub ↗
(source, destination)

Source from the content-addressed store, hash-verified

78990 results.push({ text: text });
78991 return results;
78992 }
78993
78994 var breaker = new LineBreaker(text);
78995 var last = 0;
78996 var bk;
78997
78998 while (bk = breaker.nextBreak()) {
78999 var word = text.slice(last, bk.position);
79000
79001 if (bk.required || word.match(/\r?\n$|\r$/)) { // new line
79002 word = word.replace(/\r?\n$|\r$/, '');
79003 results.push({ text: word, lineEnd: true });
79004 } else {
79005 results.push({ text: word });
79006 }

Callers 1

normalizeTextArrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected