(str)
| 47 | match: function(pattern, consume, caseInsensitive) { |
| 48 | if (typeof pattern == "string") { |
| 49 | var cased = function(str) {return caseInsensitive ? str.toLowerCase() : str;}; |
| 50 | var substr = this.string.substr(this.pos, pattern.length); |
| 51 | if (cased(substr) == cased(pattern)) { |
| 52 | if (consume !== false) this.pos += pattern.length; |
no outgoing calls
no test coverage detected
searching dependent graphs…