Change String interpretation of the regex

Maybe fixes #226
This commit is contained in:
Salanto 2022-01-23 22:57:45 +01:00
parent 0b35f11763
commit 5d9a5b1305

View File

@ -323,7 +323,7 @@ int Server::getCharID(QString char_name)
{ {
for (const QString &character : qAsConst(m_characters)) { for (const QString &character : qAsConst(m_characters)) {
if (character.toLower() == char_name.toLower()) { if (character.toLower() == char_name.toLower()) {
return m_characters.indexOf(QRegExp(character, Qt::CaseInsensitive)); return m_characters.indexOf(QRegExp(character, Qt::CaseInsensitive, QRegExp::FixedString));
} }
} }
return -1; // character does not exist return -1; // character does not exist