Temporarily allow localization brackets in key names

Must be revised when introducing proper localization support.
This commit is contained in:
TheAssassin
2018-12-06 11:49:14 +01:00
parent d486f936e2
commit 640b756a7f
+4 -1
View File
@@ -101,7 +101,10 @@ namespace linuxdeploy {
(c >= 'A' && c <= 'Z') ||
(c >= 'a' && c <= 'z') ||
(c >= '0' && c <= '9') ||
(c == '-')
(c == '-') ||
// FIXME: remove this hack after introducing localization support to
// conform to desktop file spec again
(c == '[') || (c == ']')
))
throw ParseError("Key contains invalid character " + std::string{c});
}