mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
Make menu dumper consider empty tokens require parenthesis
This commit is contained in:
parent
d2262ebaec
commit
15f57fedcd
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user