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

Function indexOf

static/editor.md/lib/codemirror/addon/mode/multiplex.js:19–23  ·  view source on GitHub ↗
(string, pattern, from)

Source from the content-addressed store, hash-verified

17 var n_others = others.length;
18
19 function indexOf(string, pattern, from) {
20 if (typeof pattern == "string") return string.indexOf(pattern, from);
21 var m = pattern.exec(from ? string.slice(from) : string);
22 return m ? m.index + from : -1;
23 }
24
25 return {
26 startState: function() {

Callers 1

multiplex.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected