(str)
| 2220 | match: function(pattern, consume, caseInsensitive) { |
| 2221 | if (typeof pattern == "string") { |
| 2222 | function cased(str) {return caseInsensitive ? str.toLowerCase() : str;} |
| 2223 | if (cased(this.string).indexOf(cased(pattern), this.pos) == this.pos) { |
| 2224 | if (consume !== false) this.pos += pattern.length; |
| 2225 | return true; |