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
ffc5b59f
Commit
ffc5b59f
authored
Aug 07, 2014
by
Waleed Khan
Browse files
Fix #258: Dashes to spaces.
parent
af4d662c
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabase.cpp
View file @
ffc5b59f
...
@@ -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
;
...
...
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