From 2a5aa06881326423decdea3326f37afb9e537b2c Mon Sep 17 00:00:00 2001 From: Waleed Khan Date: Tue, 22 Jul 2014 20:58:38 -0400 Subject: [PATCH] =?UTF-8?q?=C3=86=20now=20actually=20works=20with=20the=20?= =?UTF-8?q?case-insensitive=20tags.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cockatrice/src/carddatabase.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cockatrice/src/carddatabase.cpp b/cockatrice/src/carddatabase.cpp index 5083e6ed..df449610 100644 --- a/cockatrice/src/carddatabase.cpp +++ b/cockatrice/src/carddatabase.cpp @@ -437,6 +437,11 @@ int CardInfo::getPreferredMuId() QString CardInfo::simplifyName(const QString &name) { QString simpleName(name); + // So Aetherling would work, but not Ætherling since 'Æ' would get replaced + // with nothing. + simpleName.replace("æ", "ae"); + simpleName.replace("Æ", "AE"); + // Replace Jötun Grunt with Jotun Grunt. simpleName = simpleName.normalized(QString::NormalizationForm_KD);