Commit fe3dc025 authored by Gavin Bisesi's avatar Gavin Bisesi
Browse files

Merge pull request #266 from arxanas/token-dashes

Fix #258: Dashes to spaces.
parents ab7d70a9 ffc5b59f
......@@ -477,6 +477,10 @@ QString CardInfo::simplifyName(const QString &name) {
// Replace Jötun Grunt with Jotun Grunt.
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 = simpleName.toLower();
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