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

Function cased

static/js/codemirror/codemirror.js:3355–3355  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3353 match: function(pattern, consume, caseInsensitive) {
3354 if (typeof pattern == "string") {
3355 var cased = function(str) {return caseInsensitive ? str.toLowerCase() : str;};
3356 if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) {
3357 if (consume !== false) this.pos += pattern.length;
3358 return true;

Callers 1

codemirror.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected