summary refs log tree commit diff stats
path: root/raku/phone-number
diff options
context:
space:
mode:
Diffstat (limited to 'raku/phone-number')
-rw-r--r--raku/phone-number/Phone.rakumod2
1 files changed, 1 insertions, 1 deletions
diff --git a/raku/phone-number/Phone.rakumod b/raku/phone-number/Phone.rakumod
index 66a9e24..0761246 100644
--- a/raku/phone-number/Phone.rakumod
+++ b/raku/phone-number/Phone.rakumod
@@ -18,7 +18,7 @@ sub clean-number(Str $number --> Str) is export {
     # <punct> matches "(";
     die @errors[4] if $number.contains: /<[!:]>/;
 
-    my Int @num = $number.comb.grep(/\d/)>>.Int;
+    my Int @num = $number.comb(/\d/)>>.Int;
     given @num {
         when .elems == 11 {
             die @errors[0] if .[0] !== 1;