fix file shortening bug
This commit is contained in:
parent
97ca89c83d
commit
e73bb33d6c
@ -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 ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user