Missing \s.
This commit is contained in:
parent
0b4cfe7009
commit
5ccd7e731e
@ -3277,7 +3277,7 @@
|
||||
span = $('span[title]', file);
|
||||
span.title = filename;
|
||||
max = isOP ? 40 : 30;
|
||||
span.textContent = filename.replace(/\.w+$/, '').length > max ? "" + filename.slice(0, max) + "(...)" + (filename.match(/\.w+$/)) : filename;
|
||||
span.textContent = filename.replace(/\.\w+$/, '').length > max ? "" + filename.slice(0, max) + "(...)" + (filename.match(/\.\w+$/)) : filename;
|
||||
$.add(file, $.el('a', {
|
||||
className: 'fileThumb',
|
||||
href: data.media_link || data.remote_media_link,
|
||||
|
||||
@ -2564,8 +2564,8 @@ Get =
|
||||
# The file extension is not taken into account.
|
||||
# abcdefghijklmnopqrstuvwxyz_1234.jpg is shortened.
|
||||
# abcdefghijklmnopqrstuvwxyz_123.jpg is not shortened.
|
||||
if filename.replace(/\.w+$/, '').length > max
|
||||
"#{filename[...max]}(...)#{filename.match(/\.w+$/)}"
|
||||
if filename.replace(/\.\w+$/, '').length > max
|
||||
"#{filename[...max]}(...)#{filename.match(/\.\w+$/)}"
|
||||
else
|
||||
filename
|
||||
$.add file, $.el 'a',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user