Mojolicious-Plugin-Human

 view release on metacpan or  search on metacpan

lib/Mojolicious/Plugin/Human.pm  view on Meta::CPAN

        s{$REGEXP_PHONE_COMMAND}{$add}ig
            for $phone;

        return Mojo::ByteStream->new($phone);
    });

    $app->helper(human_phones => sub {
        my ($self, $str, $country, $add) = @_;
        return '' unless $str;

        my @phones = split m{$REGEXP_SEPARATOR}, $str;
        my $phones = join ', ' => grep { $_ } map {
            $self->human_phone( $_, $country, $add )
        } @phones;

        return Mojo::ByteStream->new($phones);
    });

    # Text

    # DEPRICATED



( run in 0.830 second using v1.01-cache-2.11-cpan-71847e10f99 )