Skip to content

Commit

Permalink
Merge pull request #1283 from metacpan/haarg/fix-backup-without-index
Browse files Browse the repository at this point in the history
allow strings for backup script index option
  • Loading branch information
haarg authored Oct 5, 2024
2 parents 13f4036 + 17f6f69 commit d72626c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/MetaCPAN/Types/TypeTiny.pm
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,8 @@ declare CommaSepOption, as ArrayRef [ StrMatch [qr{^[^, ]+$}] ];
coerce CommaSepOption, from ArrayRef [Str], via {
return [ map split(/\s*,\s*/), @$_ ];
};
coerce CommaSepOption, from Str, via {
return [ map split(/\s*,\s*/), $_ ];
};

1;

0 comments on commit d72626c

Please sign in to comment.