#304 Fix single character argument to StyleContext::MatchIgnoreCase.

This commit is contained in:
HoTschir 2025-02-07 14:12:53 +11:00 committed by Neil Hodgson
parent 4f2ac48363
commit 56dcfd3a6f

View File

@ -54,6 +54,8 @@ bool StyleContext::MatchIgnoreCase(const char *s) {
if (MakeLowerCase(ch) != static_cast<unsigned char>(*s))
return false;
s++;
if (!*s)
return true;
if (MakeLowerCase(chNext) != static_cast<unsigned char>(*s))
return false;
s++;