Bug fixes

Fix when importing rulesets, some invisible characters are also added to the result.
Fix proxy group/ruleset settings not working properly with YAML format external configurations.
This commit is contained in:
Tindy X committed 2020-03-06 00:43:13 +08:00
1 parent 908d8ec19d
commit 9aa64c4132
4 files changed
+24 -1

No files matched your search

+6
View File
@@ -618,8 +618,14 @@ bool regValid(const std::string &target)
jp::Regex reg(target);
return !!reg;
}
#endif // USE_STD_REGEX
std::string regTrim(const std::string &src)
{
return regReplace(src, "^\\s*?(.*?)\\s*$", "$1");
}
std::string speedCalc(double speed)
{
if(speed == 0.0)