(string, pattern, from)
| 17 | var n_others = others.length; |
| 18 | |
| 19 | function indexOf(string, pattern, from) { |
| 20 | if (typeof pattern == "string") return string.indexOf(pattern, from); |
| 21 | var m = pattern.exec(from ? string.slice(from) : string); |
| 22 | return m ? m.index + from : -1; |
| 23 | } |
| 24 | |
| 25 | return { |
| 26 | startState: function() { |