From 50ecb097b7e52c2dc06595ec2f728dc5896f7c47 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 21 Mar 2019 05:07:28 -0700 Subject: [PATCH] Make it possible to filter absent ID. #1578 --- src/Filtering/Filter.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Filtering/Filter.coffee b/src/Filtering/Filter.coffee index e280f8d24..232da3cf5 100644 --- a/src/Filtering/Filter.coffee +++ b/src/Filtering/Filter.coffee @@ -14,7 +14,7 @@ Filter = for line in Conf[key].split '\n' continue if line[0] is '#' - if not (regexp = line.match /\/(.+)\/(\w*)/) + if not (regexp = line.match /\/(.*)\/(\w*)/) continue # Don't mix up filter flags with the regular expression. @@ -161,7 +161,7 @@ Filter = postID: (post) -> "#{post.ID}" name: (post) -> post.info.name - uniqueID: (post) -> post.info.uniqueID + uniqueID: (post) -> post.info.uniqueID or '' tripcode: (post) -> post.info.tripcode capcode: (post) -> post.info.capcode pass: (post) -> post.info.pass