mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Bug fixes
Fix logical error for customizing rulesets and groups. Fix parsing error for some VMess subscriptions. Optimize codes.
This commit is contained in:
4 files changed
+24
-13
No files matched your search
+2
-2
@@ -563,10 +563,10 @@ bool regMatch(std::string src, std::string match)
|
||||
bool regMatch(std::string src, std::string target)
|
||||
{
|
||||
jp::Regex reg;
|
||||
reg.setPattern(target).addModifier("gm").compile();
|
||||
reg.setPattern(target).addModifier("gm").addPcre2Option(PCRE2_ANCHORED|PCRE2_ENDANCHORED).compile();
|
||||
if(!reg)
|
||||
return false;
|
||||
return reg.replace(src, "$0") == src;
|
||||
return reg.match(src);
|
||||
}
|
||||
|
||||
bool regFind(std::string src, std::string target)
|
||||
|
||||
Reference in new issue
Block a user