1 package System::Introspector::Report::Publish::API;
8 sub _prepare_matcher_from {
9 my ($self, $matchers) = @_;
10 my $pattern = join '|', map {
11 my @elements = split m{:}, $_;
13 ($_ eq '*') ? qr{[^\0]+} : qr{\Q$_\E};
15 } ref($matchers) ? @$matchers : $matchers;
16 return qr{^(?:$pattern)$};
20 my ($self, $report, $match) = @_;
21 $match = $self->_prepare_matcher_from($match)
22 unless ref($match) eq 'Regexp';
23 my $id = join "\0", ref($report->{id})