mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +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)
|
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)
|
const auto hasAlNumCharacter = std::any_of(token.begin(), token.end(), [](const char& c)
|
||||||
{
|
{
|
||||||
return isalnum(c);
|
return isalnum(c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user