Fix PDF being parsed as tag on /po/.
This commit is contained in:
parent
d5442fad2b
commit
385d94a9bd
@ -182,7 +182,7 @@ class Post
|
||||
isImage: /(jpg|png|gif)$/i.test link.href
|
||||
isVideo: /webm$/i.test link.href
|
||||
dimensions: info[0].match(/\d+x\d+/)?[0]
|
||||
tag: info[0].match(/, ([a-z]+)\)/i)?[1]
|
||||
tag: info[0].match(/,[^,]*, ([a-z]+)\)/i)?[1]
|
||||
size = +@file.size.match(/[\d.]+/)[0]
|
||||
unit = ['B', 'KB', 'MB', 'GB'].indexOf @file.size.match(/\w+$/)[0]
|
||||
size *= 1024 while unit-- > 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user