From b125eb41c3f8db2d34cac8f86c01589fc6d35f9b Mon Sep 17 00:00:00 2001 From: Qv2ray-dev <59914293+Qv2ray-dev@users.noreply.github.com> Date: Thu, 12 Mar 2020 23:26:21 +0800 Subject: [PATCH] fix: fixed a comment removal issue --- libs/puresource | 2 +- makespec/BUILDVERSION | 2 +- src/common/QvHelpers.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/puresource b/libs/puresource index 4af54ebc..bd4f9335 160000 --- a/libs/puresource +++ b/libs/puresource @@ -1 +1 @@ -Subproject commit 4af54ebc77fed903781e9224303bdec646a7c9be +Subproject commit bd4f9335bb89e7b1199282c685d49dd5ae4ce1fa diff --git a/makespec/BUILDVERSION b/makespec/BUILDVERSION index 5d3c1d34..607f57d7 100644 --- a/makespec/BUILDVERSION +++ b/makespec/BUILDVERSION @@ -1 +1 @@ -4680 \ No newline at end of file +4681 \ No newline at end of file diff --git a/src/common/QvHelpers.cpp b/src/common/QvHelpers.cpp index 9fd2fa1f..4683d52d 100644 --- a/src/common/QvHelpers.cpp +++ b/src/common/QvHelpers.cpp @@ -113,8 +113,8 @@ namespace Qv2ray::common QJsonObject JsonFromString(const QString &string) { - auto removeComment = RemoveComment(string); - if (removeComment != string) + auto removeComment = RemoveComment(string.trimmed()).trimmed(); + if (removeComment != string.trimmed()) { LOG(MODULE_FILEIO, "Some comments have been removed from the json.") }