thx / gogocode

GoGoCode is a transformer for JavaScript/Typescript/HTML based on AST but providing a more intuitive API.
MIT License
5.47k stars 417 forks source link

Bug Report From Playground: 选择器var e = this.test(),对于var e = this.test('hello')[0]不生效 #204

Open zhangdaren opened 1 year ago

zhangdaren commented 1 year ago
var e = this.test('hello');
var e = this.test('hello')[0];

使用下面代码处理后,只有第一行生效了,第二行不生效。 $(source).replace(`var e = this.test()`, 'aaaaa').generate()