From 385d94a9bd8a3746d174a8700e86a258042d0bff Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 2 May 2015 15:37:26 -0700 Subject: [PATCH] Fix PDF being parsed as tag on /po/. --- src/General/lib/post.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/lib/post.class b/src/General/lib/post.class index 6bb4ca81f..7fec2efc3 100755 --- a/src/General/lib/post.class +++ b/src/General/lib/post.class @@ -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