feature #I64T29 增加脚本语言Lua的支持

This commit is contained in:
everywhere.z
2022-12-06 11:14:42 +08:00
parent 579d05a7c3
commit 940fbff68a
18 changed files with 289 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ public class PythonScriptExecutor extends JSR223ScriptExecutor {
//用第一行的缩进的空格数作为整个代码的缩进量
String blankStr = ReUtil.getGroup0("^[ ]*", noBlankLineList.get(0));
//重新构建python脚本
//重新构建脚本
StringBuilder scriptSB = new StringBuilder();
noBlankLineList.forEach(s
-> scriptSB.append(StrUtil.format("{}\n", s.replaceFirst(blankStr, StrUtil.EMPTY))));