Dist::Zilla::Role::Version::Sanitize - Sanitize a version from a plugin
version 0.002004
Determines which normal form is used.
Default is : numify
Determines the mandatory length of the mantissa
for the numify
normal form.
Default is : 6
Which yields:
1.001001
10.001001
100.001001
1000.001001
Etc.
Normalizes to the notation:
v1
v1.2
v1.2.3
v1.2.3.4
Normalizes to the notation
1.2.3
1.2.3.4
Note: Due to the absence of the leading v
, 3, is the minimum number of places that can be represented in this notation.
Accidentally normalizing to
1.2
In this form should raise a fatal exception.
Normalizes to the notation
1.23456789
| ^------^--- The Mantissa
|
^------------ Integer part.
And the length for mantissa is forced by mantissa
, either truncating to mantissa
length, or paddding
to mantissa
length with 0
's
Kent Fredric kentnl@cpan.org
This software is copyright (c) 2017 by Kent Fredric kentfredric@gmail.com.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.