Merge pull request #266 from arxanas/token-dashes
Fix #258: Dashes to spaces.
This commit is contained in:
commit
fe3dc02513
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue