fix file shortening bug

This commit is contained in:
ccd0 2014-05-12 22:39:44 -07:00
parent 97ca89c83d
commit e73bb33d6c

View File

@ -9,7 +9,7 @@ Build =
threshold = if isReply then 30 else 40
ext = filename.match(/\.?[^\.]*$/)[0]
if filename.length - ext.length > threshold
"#{filename[...threshold - 5]}(...).#{ext}"
"#{filename[...threshold - 5]}(...)#{ext}"
else
filename
thumbRotate: do ->