Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Commit 6f4f87e

Browse files
QxQQxQ
authored andcommitted
fix: (should have) fixed importing
1 parent 725ae4c commit 6f4f87e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

core/Serializer.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,20 @@ const QPair<QString, QJsonObject> SSRSerializer::DeserializeOutbound(const QStri
4747
// params_dict = ParseParam(data.mid(param_start_pos + 1));
4848
data = data.mid(0, param_start_pos);
4949
}
50+
5051
if (data.indexOf("/") >= 0)
5152
{
5253
data = data.mid(0, data.lastIndexOf("/"));
5354
}
5455

55-
#pragma message "Possible: Breaking Changes"
56-
const auto matched = regex.match(data);
57-
const auto list = regex.namedCaptureGroups();
58-
if (matched.hasMatch() && list.count() == 7)
56+
const auto match = regex.match(data);
57+
const auto hasmatch = match.hasMatch();
58+
QStringList list;
59+
for (auto i = 0; i <= regex.captureCount(); i++)
60+
{
61+
list << match.captured(i);
62+
}
63+
if (hasmatch && list.count() == 7)
5964
{
6065
server.address = list[1];
6166
server.port = list[2].toInt();

0 commit comments

Comments
 (0)