Commit ffc5b59f authored by Waleed Khan's avatar Waleed Khan
Browse files

Fix #258: Dashes to spaces.

parent af4d662c
...@@ -477,6 +477,10 @@ QString CardInfo::simplifyName(const QString &name) { ...@@ -477,6 +477,10 @@ QString CardInfo::simplifyName(const QString &name) {
// Replace Jötun Grunt with Jotun Grunt. // Replace Jötun Grunt with Jotun Grunt.
simpleName = simpleName.normalized(QString::NormalizationForm_KD); simpleName = simpleName.normalized(QString::NormalizationForm_KD);
// Replace dashes with spaces so that we can say "garruk the veil cursed"
// instead of the unintuitive "garruk the veilcursed".
simpleName = simpleName.replace("-", " ");
simpleName.remove(QRegExp("[^a-zA-Z0-9 ]")); simpleName.remove(QRegExp("[^a-zA-Z0-9 ]"));
simpleName = simpleName.toLower(); simpleName = simpleName.toLower();
return simpleName; return simpleName;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment