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

Function cased

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

Source from the content-addressed store, hash-verified

6011 match: function(pattern, consume, caseInsensitive) {
6012 if (typeof pattern == "string") {
6013 var cased = function(str) {return caseInsensitive ? str.toLowerCase() : str;};
6014 var substr = this.string.substr(this.pos, pattern.length);
6015 if (cased(substr) == cased(pattern)) {
6016 if (consume !== false) this.pos += pattern.length;

Callers 1

codemirror.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected