MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / classTest

Function classTest

lib/web/CodeMirror/src/util/dom.js:3–3  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

1import { ie, ios } from "./browser.js"
2
3export function classTest(cls) { return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*") }
4
5export let rmClass = function(node, cls) {
6 let current = node.className

Callers 5

updateLineWidgetsFunction · 0.90
Doc.jsFile · 0.90
rmClassFunction · 0.70
addClassFunction · 0.70
joinClassesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected