mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Fix some keys might be missing when parsing some Clash subscriptions
Update build scripts.
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -12,7 +12,7 @@ cd ..
|
|||||||
|
|
||||||
git clone https://github.com/jbeder/yaml-cpp --depth=1
|
git clone https://github.com/jbeder/yaml-cpp --depth=1
|
||||||
cd yaml-cpp
|
cd yaml-cpp
|
||||||
cmake -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null
|
cmake -DCMAKE_BUILD_TYPE=Release -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null
|
||||||
make install -j2 > /dev/null
|
make install -j2 > /dev/null
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ cd ..
|
|||||||
|
|
||||||
git clone https://github.com/jbeder/yaml-cpp --depth=1
|
git clone https://github.com/jbeder/yaml-cpp --depth=1
|
||||||
cd yaml-cpp
|
cd yaml-cpp
|
||||||
cmake -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null
|
cmake -DCMAKE_BUILD_TYPE=Release -DYAML_CPP_BUILD_TESTS=OFF -DYAML_CPP_BUILD_TOOLS=OFF . > /dev/null
|
||||||
make install -j8 > /dev/null
|
make install -j8 > /dev/null
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|||||||
@@ -1924,7 +1924,7 @@ void explodeSub(std::string sub, bool sslibev, bool ssrlibev, const std::string
|
|||||||
{
|
{
|
||||||
if(!processed && regFind(sub, "\"?(Proxy|proxies)\"?:"))
|
if(!processed && regFind(sub, "\"?(Proxy|proxies)\"?:"))
|
||||||
{
|
{
|
||||||
regGetMatch(sub, R"(^(?:Proxy|proxies):$\s(?:(?:^ +?.*$| *?-.*$|)\s)+)", 1, &sub);
|
regGetMatch(sub, R"(^(?:Proxy|proxies):$\s(?:(?:^ +?.*$| *?-.*$|)\s?)+)", 1, &sub);
|
||||||
Node yamlnode = Load(sub);
|
Node yamlnode = Load(sub);
|
||||||
if(yamlnode.size() && (yamlnode["Proxy"].IsDefined() || yamlnode["proxies"].IsDefined()))
|
if(yamlnode.size() && (yamlnode["Proxy"].IsDefined() || yamlnode["proxies"].IsDefined()))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user