MCPcopy Create free account
hub / github.com/sql-js/sql.js / split

Function split

GUI/codemirror/lib/codemirror.js:5814–5819  ·  view source on GitHub ↗
(old)

Source from the content-addressed store, hash-verified

5812
5813 function buildTokenSplitSpaces(inner) {
5814 function split(old) {
5815 var out = " ";
5816 for (var i = 0; i < old.length - 2; ++i) out += i % 2 ? " " : "\u00a0";
5817 out += " ";
5818 return out;
5819 }
5820 return function(builder, text, style, startStyle, endStyle, title) {
5821 inner(builder, text.replace(/ {3,}/g, split), style, startStyle, endStyle, title);
5822 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…