Add a space between number and book name in the menu bar
This commit is contained in:
parent
e661b75e80
commit
c241f7fb25
|
@ -8,7 +8,7 @@ export default class BookComponent extends Component {
|
|||
get bookTitle() {
|
||||
let string = this.args.book.name.toLowerCase();
|
||||
if (this.isNumber(string.charAt(0))) {
|
||||
return string.slice(0,1) + string.charAt(2).toUpperCase() + string.slice(3);
|
||||
return string.slice(0,1) + ' ' + string.charAt(2).toUpperCase() + string.slice(3);
|
||||
} else {
|
||||
return string.charAt(0).toUpperCase() + string.slice(1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue