Merge pull request #224 from arxanas/case-insensitive-card-tag

Æ now actually works with the case-insensitive tags.
This commit is contained in:
Gavin Bisesi 2014-07-23 08:12:54 -04:00
commit 0f627958c7

View file

@ -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);