mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Enhancements
Fix support for parsing some Surge configurations. Fix adding extra blank line to section end when exporting some configurations. Fix adding real internal link as MANAGED-CONFIG URL when using profile. Fix not filtering load-balance group in Surfboard configurations. (Issue [#128](https://github.com/tindy2013/subconverter/issues/128)). Fix rule type filter not working properly. Add support for using template in external configurations. Add relay group support for Clash configurations. Optimize codes.
This commit is contained in:
5 files changed
+70
-49
No files matched your search
+2
-2
@@ -70,8 +70,8 @@ int render_template(const std::string &content, const template_args &vars, std::
|
||||
});
|
||||
m_callbacks.add_callback("join", 3, [](inja::Arguments &args)
|
||||
{
|
||||
std::string str1 = args.at(0)->get<std::string>(), str2 = args.at(1)->get<std::string>(), delim = args.at(2)->get<std::string>();
|
||||
return std::move(str1) + std::move(delim) + std::move(str2);
|
||||
std::string str1 = args.at(0)->get<std::string>(), str2 = args.at(1)->get<std::string>(), str3 = args.at(2)->get<std::string>();
|
||||
return std::move(str1) + std::move(str2) + std::move(str3);
|
||||
});
|
||||
m_callbacks.add_callback("fetch", 1, template_webGet);
|
||||
m_callbacks.add_callback("parseHostname", 1, parseHostname);
|
||||
|
||||
Reference in new issue
Block a user