Skip to content

Commit d72626c

Browse files
authored
Merge pull request #1283 from metacpan/haarg/fix-backup-without-index
allow strings for backup script index option
2 parents 13f4036 + 17f6f69 commit d72626c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/MetaCPAN/Types/TypeTiny.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,8 @@ declare CommaSepOption, as ArrayRef [ StrMatch [qr{^[^, ]+$}] ];
132132
coerce CommaSepOption, from ArrayRef [Str], via {
133133
return [ map split(/\s*,\s*/), @$_ ];
134134
};
135+
coerce CommaSepOption, from Str, via {
136+
return [ map split(/\s*,\s*/), $_ ];
137+
};
135138

136139
1;

0 commit comments

Comments
 (0)