(str)
| 41 | match: function(pattern, consume, caseInsensitive) { |
| 42 | if (typeof pattern == "string") { |
| 43 | var cased = function(str) {return caseInsensitive ? str.toLowerCase() : str;}; |
| 44 | if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) { |
| 45 | if (consume !== false) this.pos += pattern.length; |
| 46 | return true; |