diff options
Diffstat (limited to 'raku')
-rw-r--r-- | raku/acronym/Acronym.rakumod | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/raku/acronym/Acronym.rakumod b/raku/acronym/Acronym.rakumod index 225ae9c..ce9c39a 100644 --- a/raku/acronym/Acronym.rakumod +++ b/raku/acronym/Acronym.rakumod @@ -1,7 +1,5 @@ unit module Acronym; sub abbreviate(Str $phrase --> Str) is export { - [~] $phrase.uc.split((' ', '-'), :skip-empty).map( - *.comb(/<[A..Z]>/).first - ) + [~] $phrase.split(/<[-_\s]>/).map(*.substr(0, 1).uc) } |