Fix PDF being parsed as tag on /po/.

This commit is contained in:
ccd0 2015-05-02 15:37:26 -07:00
parent d5442fad2b
commit 385d94a9bd

View File

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