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