Make it possible to filter absent ID. #1578
This commit is contained in:
parent
b102e95613
commit
50ecb097b7
@ -14,7 +14,7 @@ Filter =
|
|||||||
for line in Conf[key].split '\n'
|
for line in Conf[key].split '\n'
|
||||||
continue if line[0] is '#'
|
continue if line[0] is '#'
|
||||||
|
|
||||||
if not (regexp = line.match /\/(.+)\/(\w*)/)
|
if not (regexp = line.match /\/(.*)\/(\w*)/)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Don't mix up filter flags with the regular expression.
|
# Don't mix up filter flags with the regular expression.
|
||||||
@ -161,7 +161,7 @@ Filter =
|
|||||||
|
|
||||||
postID: (post) -> "#{post.ID}"
|
postID: (post) -> "#{post.ID}"
|
||||||
name: (post) -> post.info.name
|
name: (post) -> post.info.name
|
||||||
uniqueID: (post) -> post.info.uniqueID
|
uniqueID: (post) -> post.info.uniqueID or ''
|
||||||
tripcode: (post) -> post.info.tripcode
|
tripcode: (post) -> post.info.tripcode
|
||||||
capcode: (post) -> post.info.capcode
|
capcode: (post) -> post.info.capcode
|
||||||
pass: (post) -> post.info.pass
|
pass: (post) -> post.info.pass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user