MCPcopy Create free account
hub / github.com/TruthHun/BookStack / classTest

Function classTest

static/mergely/lib/codemirror.js:8433–8433  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

8431 };
8432
8433 function classTest(cls) { return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*"); }
8434 var rmClass = CodeMirror.rmClass = function(node, cls) {
8435 var current = node.className;
8436 var match = classTest(cls).exec(current);

Callers 2

codemirror.jsFile · 0.70
joinClassesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected