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

@@ -4,9 +4,10 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.yomahub</groupId>
<artifactId>liteflow-script-plugin</artifactId>
<version>2.9.5</version>
<groupId>com.yomahub</groupId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>liteflow-script-python</artifactId>

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))));