Skip to content

Commit

Permalink
fix exporting filter function
Browse files Browse the repository at this point in the history
functions starting with underscore are required
  • Loading branch information
sni committed Jan 25, 2025
1 parent aae52b3 commit f2d511b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/Thruk/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,6 @@ sub get_functions_for_class {
my $RE_IDENTIFIER = qr/\A[^\W\d]\w*\z/s;
my @functions = sort grep { /$RE_IDENTIFIER/o }
grep { defined &{"${classname}::$_"} }
grep { !/^_/o } # hide functions starting with _
keys %{"${classname}::"};

return(\@functions);
Expand Down

0 comments on commit f2d511b

Please sign in to comment.