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

Function classTest

static/editor.md/lib/codemirror/lib/codemirror.js:8192–8192  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

8190 };
8191
8192 function classTest(cls) { return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*"); }
8193 var rmClass = CodeMirror.rmClass = function(node, cls) {
8194 var current = node.className;
8195 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