Missing \s.

This commit is contained in:
Nicolas Stepien 2012-06-17 00:01:11 +02:00
parent 0b4cfe7009
commit 5ccd7e731e
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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',