MCPcopy Create free account
hub / github.com/breck7/scroll / cased

Function cased

external/.scrollLibs.js:2378–2380  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

2376 StringStream.prototype.match = function (pattern, consume, caseInsensitive) {
2377 if (typeof pattern == "string") {
2378 var cased = function (str) {
2379 return caseInsensitive ? str.toLowerCase() : str
2380 }
2381 var substr = this.string.substr(this.pos, pattern.length)
2382 if (cased(substr) == cased(pattern)) {
2383 if (consume !== false) {

Callers 1

.scrollLibs.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected