mirror of
https://gitee.com/BDWare/common
synced 2026-01-28 16:29:29 +00:00
feat: update Script
update Script.initTextWithCleaning to remove keyword 'view' before compiling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user