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

Function cased

static/editor.md/lib/codemirror/lib/codemirror.js:5811–5811  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

5809 match: function(pattern, consume, caseInsensitive) {
5810 if (typeof pattern == "string") {
5811 var cased = function(str) {return caseInsensitive ? str.toLowerCase() : str;};
5812 var substr = this.string.substr(this.pos, pattern.length);
5813 if (cased(substr) == cased(pattern)) {
5814 if (consume !== false) this.pos += pattern.length;

Callers 1

codemirror.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected