Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
fe3dc025
Commit
fe3dc025
authored
Aug 07, 2014
by
Gavin Bisesi
Browse files
Merge pull request #266 from arxanas/token-dashes
Fix #258: Dashes to spaces.
parents
ab7d70a9
ffc5b59f
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabase.cpp
View file @
fe3dc025
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment