fix(menus): make functions case insensitive

This commit is contained in:
Diavolo
2023-12-10 21:33:02 +01:00
parent 20af6c4ba5
commit b8b76adc73
2 changed files with 3 additions and 2 deletions

View File

@ -92,6 +92,7 @@ std::unique_ptr<ISimpleExpression> MenuExpressionMatchers::ProcessOperandExtensi
const auto& functionCallToken = result.NextCapture(CAPTURE_FUNCTION_NAME);
auto functionCallName = functionCallToken.IdentifierValue();
utils::MakeStringLowerCase(functionCallName);
const auto& baseFunctionMap = GetBaseFunctionMapForFeatureLevel(m_state->m_feature_level);
const auto foundBaseFunction = baseFunctionMap.find(functionCallName);