fixed the expression in quotation marks

This commit is contained in:
Alexander Zhirov 2023-03-24 08:35:43 +03:00
parent 4ecf8e720a
commit e206abd027
2 changed files with 2 additions and 3 deletions

View File

@ -84,7 +84,7 @@ private:
{
if (match[group][0] == '\'')
group = 10;
if (match[group][0] == '\"')
else if (match[group][0] == '\"')
group = 8;
}
this.properties[match[1]] = PP(match[1], match[group]);

View File

@ -9,8 +9,7 @@ unittest
assert(Config.file.key("value3") == "Or take in apostrophes");
assert(Config.file.key("value4") == "You can also comment");
assert(Config.file.key("value5") == "So you can also comment");
// assert(Config.file.key("value6") == "\"And you can even do that!\"");
assert(Config.file.key("value6") == ""); // D unable to read quotes
assert(Config.file.key("value6") == "\"And you can even do that!\"");
assert(Config.file.key("value7") == "1234567890");
assert(Config.file.key("value8") == "12345.67890");
assert(Config.file.key("value9") == "You can use large margins");