-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
mip-cli/lib/mip-custom/custom-common.js
Lines 70 to 79 in 5aa26c4
| .split(/\}/g).filter(function (line) { | |
| if (line) { | |
| line = line.trim(); | |
| var tag = '^\\s*' + extName + '.*'; | |
| var reg = new RegExp(tag); | |
| if (!/^\@.*/.test(line) && !reg.exec(line)) { | |
| ct += extName + ' ' + line + '}'; | |
| } else { | |
| ct += line + '}'; | |
| } |
还是变成 ast 处理吧,这么复杂的正则鬼知道会发生什么
Reactions are currently unavailable