mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 23:08:05 -05:00
Fix SimpleMatcher for keyword ignore case does not properly ignore case
This commit is contained in:
@ -19,7 +19,7 @@ MatcherResult<SimpleParserValue> SimpleMatcherKeywordIgnoreCase::CanMatch(ILexer
|
|||||||
const auto& identifierValue = token.IdentifierValue();
|
const auto& identifierValue = token.IdentifierValue();
|
||||||
const auto isEqual = std::equal(identifierValue.begin(), identifierValue.end(), m_value.begin(), m_value.end(), [](const char a, const char b)
|
const auto isEqual = std::equal(identifierValue.begin(), identifierValue.end(), m_value.begin(), m_value.end(), [](const char a, const char b)
|
||||||
{
|
{
|
||||||
return a == tolower(b);
|
return tolower(a) == b;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isEqual)
|
if (isEqual)
|
||||||
|
Reference in New Issue
Block a user