feat: update Script

update Script.initTextWithCleaning to remove keyword 'view' before compiling
This commit is contained in:
Frank.R.Wu 2021-11-19 18:16:13 +08:00
parent 1ed4dfd496
commit 9b1ca64af9

View File

@ -42,7 +42,7 @@ public class Script {
plainText = plainText.replaceFirst("exported", "");
}
if (isView) {
plainText = plainText.replaceFirst("\\)\\s?view\\s?\\{", "){");
plainText = plainText.replaceFirst("\\)\\s*view\\s*\\{", "){");
}
this.plainText = plainText;
}