X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcommon%2Ftext.cpp;h=df64411c7b6f59ab23a1b6ece14d0737df441f37;hb=9d72c3d9a29ee947b2df872ffce51940fe9bf691;hp=82374401075c4b136717518dbeebb6432124cf21;hpb=ce0d1d07ea89abafb4debeb31e23f1b598fd9951;p=xestiacalendar%2F.git diff --git a/source/common/text.cpp b/source/common/text.cpp index 8237440..df64411 100644 --- a/source/common/text.cpp +++ b/source/common/text.cpp @@ -172,6 +172,17 @@ PropertyNameValue SplitNameValue(string InputData){ } + // Check if the value has quotes at the start and end. + // Remove them if this is the case. + + if (FinalNameValue.Value.front() == '\"' && + FinalNameValue.Value.back() == '\"'){ + + FinalNameValue.Value.erase(0, 1); + FinalNameValue.Value.erase((FinalNameValue.Value.size() - 1), 1); + + } + return FinalNameValue; } \ No newline at end of file