MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / classTest

Function classTest

static/libs/codemirror.js:50–50  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

48var captureRightClick = gecko || (ie && ie_version >= 9);
49
50function classTest(cls) { return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*") }
51
52var rmClass = function(node, cls) {
53 var current = node.className;

Callers 4

rmClassFunction · 0.85
addClassFunction · 0.85
joinClassesFunction · 0.85
codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected