Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TruthHun/BookStack
/ ensureState
Function
ensureState
static/editor.md/lib/codemirror/addon/mode/simple.js:61–64 ·
view source on GitHub ↗
(states, name)
Source
from the content-addressed store, hash-verified
59
};
60
61
function
ensureState(states, name) {
62
if
(!states.hasOwnProperty(name))
63
throw
new
Error(
"Undefined state "
+ name +
"in simple mode"
);
64
}
65
66
function
toRegex(val, caret) {
67
if
(!val)
return
/(?:)/;
Callers
2
simple.js
File · 0.85
Rule
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected