fix: fixed a comment removal issue

This commit is contained in:
Qv2ray-dev 2020-03-12 23:26:21 +08:00
parent ba32111169
commit b125eb41c3
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 4af54ebc77fed903781e9224303bdec646a7c9be Subproject commit bd4f9335bb89e7b1199282c685d49dd5ae4ce1fa

View File

@ -1 +1 @@
4680 4681

View File

@ -113,8 +113,8 @@ namespace Qv2ray::common
QJsonObject JsonFromString(const QString &string) QJsonObject JsonFromString(const QString &string)
{ {
auto removeComment = RemoveComment(string); auto removeComment = RemoveComment(string.trimmed()).trimmed();
if (removeComment != string) if (removeComment != string.trimmed())
{ {
LOG(MODULE_FILEIO, "Some comments have been removed from the json.") LOG(MODULE_FILEIO, "Some comments have been removed from the json.")
} }