mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-06 12:15:37 +00:00
Make menu dumper consider empty tokens require parenthesis
This commit is contained in:
1 parent
d2262ebaec
commit
15f57fedcd
1 file changed
+3
@@ -110,6 +110,9 @@ std::vector<std::string> AbstractMenuDumper::CreateScriptTokenList(const char* s
|
||||
|
||||
bool AbstractMenuDumper::DoesTokenNeedQuotationMarks(const std::string& token)
|
||||
{
|
||||
if (token.empty())
|
||||
return true;
|
||||
|
||||
const auto hasAlNumCharacter = std::any_of(token.begin(), token.end(), [](const char& c)
|
||||
{
|
||||
return isalnum(c);
|
||||
|
||||
Reference in new issue
Block a user