mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
Fix placeholder issues with multiplace spaces in the name
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
parent
f3768e2a2a
commit
00d545f87e
3 changed files with 3 additions and 3 deletions
2
core/js/dist/main.js
vendored
2
core/js/dist/main.js
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/main.js.map
vendored
2
core/js/dist/main.js.map
vendored
File diff suppressed because one or more lines are too long
2
core/src/jquery/placeholder.js
vendored
2
core/src/jquery/placeholder.js
vendored
|
|
@ -164,7 +164,7 @@ $.fn.imageplaceholder = function(seed, text, size) {
|
|||
this.css('font-size', (height * 0.55) + 'px')
|
||||
|
||||
if (seed !== null && seed.length) {
|
||||
var placeholderText = text.split(' ', 2).map((word) => word[0].toUpperCase()).join('')
|
||||
var placeholderText = text.replace(/\s+/g, ' ').trim().split(' ', 2).map((word) => word[0].toUpperCase()).join('')
|
||||
this.html(placeholderText);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue