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

Function Rule

static/editor.md/lib/codemirror/addon/mode/simple.js:87–92  ·  view source on GitHub ↗
(data, states)

Source from the content-addressed store, hash-verified

85 }
86
87 function Rule(data, states) {
88 if (data.next || data.push) ensureState(states, data.next || data.push);
89 this.regex = toRegex(data.regex);
90 this.token = asToken(data.token);
91 this.data = data;
92 }
93
94 function tokenFunction(states, config) {
95 return function(stream, state) {

Callers

nothing calls this directly

Calls 3

ensureStateFunction · 0.85
toRegexFunction · 0.85
asTokenFunction · 0.85

Tested by

no test coverage detected