MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / cased

Function cased

static/js/codemirror/addon/runmode/runmode.node.js:43–43  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

41 match: function(pattern, consume, caseInsensitive) {
42 if (typeof pattern == "string") {
43 var cased = function(str) {return caseInsensitive ? str.toLowerCase() : str;};
44 if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) {
45 if (consume !== false) this.pos += pattern.length;
46 return true;

Callers 1

runmode.node.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected