lib/HTML/FormFu/Filter/NonNumeric.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 15 / 15 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
match
1.0
CRAP 1.0
« lib/HTML/FormFu/Element/Text.pm ↑ Summary lib/HTML/FormFu/Filter/Whitespace.pm »
1 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package HTML::FormFu::Filter::NonNumeric;
4 2 $HTML::FormFu::Filter::NonNumeric::VERSION = '2.06';
5 # ABSTRACT: filter removing all non-numeric characters
6  
7 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 extends 'HTML::FormFu::Filter::Regex';
9  
10 2 ▶sub match {qr/\D+/}
Subroutine match: called CC=1 SCAR=0.0
Pod documented
11  
12 2 __PACKAGE__->meta->make_immutable;
13  
14 2 1;
15  
16 __END__
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 HTML::FormFu::Filter::NonNumeric - filter removing all non-numeric characters
25  
26 =head1 VERSION
27  
28 version 2.06
29  
30 =head1 DESCRIPTION
31  
32 Remove all non-numeric characters.
33  
34 =head1 AUTHOR
35  
36 Carl Franks, C<cfranks@cpan.org>
37  
38 =head1 LICENSE
39  
40 This library is free software, you can redistribute it and/or modify it under
41 the same terms as Perl itself.
42  
43 =head1 AUTHOR
44  
45 Carl Franks <cpan@fireartist.com>
46  
47 =head1 COPYRIGHT AND LICENSE
48  
49 This software is copyright (c) 2018 by Carl Franks.
50  
51 This is free software; you can redistribute it and/or modify it under
52 the same terms as the Perl 5 programming language system itself.
53  
54 =cut
« lib/HTML/FormFu/Element/Text.pm ↑ Summary lib/HTML/FormFu/Filter/Whitespace.pm »