(match)
| 145 | [function() {doReplace(match);}, advance]); |
| 146 | }; |
| 147 | var doReplace = function(match) { |
| 148 | cursor.replace(typeof query == "string" ? text : |
| 149 | text.replace(/\$(\d)/g, function(_, i) {return match[i];})); |
| 150 | advance(); |
| 151 | }; |
| 152 | advance(); |
| 153 | } |
| 154 | }); |