mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-21 10:10:46 +00:00
test for querying non-fixed-size tags (#t)
This commit is contained in:
@ -102,6 +102,19 @@ sub doesMatchSingle {
|
||||
return 0 if !$found;
|
||||
}
|
||||
|
||||
if ($filter->{'#t'}) {
|
||||
my $found;
|
||||
foreach my $search (@{ $filter->{'#t'} }) {
|
||||
foreach my $tag (@{ $ev->{tags} }) {
|
||||
if ($tag->[0] eq 't' && $tag->[1] eq $search) {
|
||||
$found = 1;
|
||||
last;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0 if !$found;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user