mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-19 02:10:28 +08:00
fix: fixed a comment removal issue
This commit is contained in:
parent
ba32111169
commit
b125eb41c3
@ -1 +1 @@
|
|||||||
Subproject commit 4af54ebc77fed903781e9224303bdec646a7c9be
|
Subproject commit bd4f9335bb89e7b1199282c685d49dd5ae4ce1fa
|
@ -1 +1 @@
|
|||||||
4680
|
4681
|
@ -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.")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user