MCPcopy
hub / github.com/nwutils/nw-sample-apps / cased

Function cased

mini-code-edit/cm/lib/codemirror.js:2222–2222  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

2220 match: function(pattern, consume, caseInsensitive) {
2221 if (typeof pattern == "string") {
2222 function cased(str) {return caseInsensitive ? str.toLowerCase() : str;}
2223 if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) {
2224 if (consume !== false) this.pos += pattern.length;
2225 return true;

Callers 1

codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected