From cb7fe316e38c10c20b24b82484c201a6e706ccd5 Mon Sep 17 00:00:00 2001 From: Scimon Date: Mon, 14 Jul 2025 11:00:49 +0100 Subject: Small change --- challenge-330/simon-proctor/raku/ch-1.raku | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/challenge-330/simon-proctor/raku/ch-1.raku b/challenge-330/simon-proctor/raku/ch-1.raku index 7defc70037..5c3c027128 100755 --- a/challenge-330/simon-proctor/raku/ch-1.raku +++ b/challenge-330/simon-proctor/raku/ch-1.raku @@ -13,8 +13,7 @@ multi sub MAIN(:t(:$test)) is hidden-from-USAGE { } sub clear-digits(ValidInput $str is copy) { - $str = loop-strip( $str, / \D\d / ); - $str = loop-strip( $str, /^ \d / ); + $str = loop-strip( $str, / \D?\d / ); return $str; } -- cgit