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

Function classTest

GUI/codemirror/lib/codemirror.js:7126–7126  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

7124 };
7125
7126 function classTest(cls) { return new RegExp("\\b" + cls + "\\b\\s*"); }
7127 function rmClass(node, cls) {
7128 var test = classTest(cls);
7129 if (test.test(node.className)) node.className = node.className.replace(test, "");

Callers 3

rmClassFunction · 0.85
addClassFunction · 0.85
joinClassesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…