MCPcopy Index your code
hub / github.com/csev/py4e / classTest

Function classTest

tools/pythonauto/static/codemirrorepl/codemirror.js:7068–7068  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

7066 };
7067
7068 function classTest(cls) { return new RegExp("\\b" + cls + "\\b\\s*"); }
7069 function rmClass(node, cls) {
7070 var test = classTest(cls);
7071 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