Merge pull request from Salanto/fix/character-unselect

Change regex interpretation
This commit is contained in:
Rosemary Witchaven 2022-01-24 13:46:14 -06:00 committed by GitHub
commit 505ff57e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,7 +323,7 @@ int Server::getCharID(QString char_name)
{
for (const QString &character : qAsConst(m_characters)) {
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