修复windows场景下无法解析模糊路径的bug

This commit is contained in:
rain
2024-04-24 21:23:48 +08:00
parent 252c81dd15
commit 3a25c35b62
7 changed files with 62 additions and 2 deletions

View File

@@ -136,8 +136,8 @@ public class FlowExecutor {
// 查找对应的解析器
parser = FlowParserProvider.lookup(path);
parserNameSet.add(parser.getClass().getName());
// 替换掉前缀标识xml:/json:),保留剩下的完整地址
path = ReUtil.replaceAll(path, PREFIX_FORMAT_CONFIG_REGEX, "");
// 替换掉前缀标识xml:/json:),保留剩下的完整地址,并统一路径格式
path = ReUtil.replaceAll(path, PREFIX_FORMAT_CONFIG_REGEX, "").replace("\\", "/");
rulePathList.add(path);
// 支持多类型的配置文件,分别解析