From 5d9a5b130513ab33fba163bb0289d0c0df0fd733 Mon Sep 17 00:00:00 2001 From: Salanto <62221668+Salanto@users.noreply.github.com> Date: Sun, 23 Jan 2022 22:57:45 +0100 Subject: [PATCH] Change String interpretation of the regex Maybe fixes #226 --- core/src/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/server.cpp b/core/src/server.cpp index 11ed1d2..c34e7f8 100644 --- a/core/src/server.cpp +++ b/core/src/server.cpp @@ -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