tracks/perl6/exercises/luhn/Example.pm6 in trackler-2.2.1.95 vs tracks/perl6/exercises/luhn/Example.pm6 in trackler-2.2.1.96
- old
+ new
@@ -1,5 +1,5 @@
-unit module Luhn:ver<2>;
+unit module Luhn:ver<3>;
sub is-luhn-valid ($input is copy) is export {
$input ~~ s:g/\s+//;
return False if $input.chars < 2 || $input ~~ /\D/;
my @num = $input.split('', :skip-empty);