Skip to content

Commit

Permalink
Remove dead code from WebFilteredField
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Oct 3, 2019
1 parent c4458a6 commit 0bb8907
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/Wing/Role/Result/WebFilteredField.pm
Expand Up @@ -32,8 +32,6 @@ sub wing_webfiltered_field {
$class->meta->add_before_method_modifier($field => sub { $class->meta->add_before_method_modifier($field => sub {
my ($self, $value) = @_; my ($self, $value) = @_;
if (defined $value) { if (defined $value) {
my @unsorted = split /\s+/, $value;
my @sorted = map {$_->[1]} sort {$a->[0] <=> $b->[0]} map {[length $_, $_]} @unsorted;
my $html = $value; my $html = $value;
Wing::ContentFilter::format_html(\$html, exists $options->{format_html} ? $options->{format_html} : { entities => 1, with_markdown => $options->{use_markdown} }); Wing::ContentFilter::format_html(\$html, exists $options->{format_html} ? $options->{format_html} : { entities => 1, with_markdown => $options->{use_markdown} });
Wing::ContentFilter::find_and_format_uris(\$html, exists $options->{find_and_format_uris} ? $options->{find_and_format_uris} : { youtube => 1, links => 1, images => 1, vimeo => 1}); Wing::ContentFilter::find_and_format_uris(\$html, exists $options->{find_and_format_uris} ? $options->{find_and_format_uris} : { youtube => 1, links => 1, images => 1, vimeo => 1});
Expand Down

0 comments on commit 0bb8907

Please sign in to comment.