Fix ZoneDefinition parser condition for leaving out slashes

This commit is contained in:
Jan 2021-03-13 14:54:36 +01:00
parent a7860c7c76
commit 5f6d976748

View File

@ -36,7 +36,7 @@ std::unique_ptr<ZoneDefinitionCommonMatchers::matcher_t> ZoneDefinitionCommonMat
case SimpleParserValueType::CHARACTER:
if (token.get().CharacterValue() == '/')
{
if (previousType == SimpleParserValueType::CHARACTER && !previousCharacterWasSlash)
if (previousType != SimpleParserValueType::CHARACTER || !previousCharacterWasSlash)
{
str << "/";
previousCharacterWasSlash = true;