File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ async function addProject() {
2323 }
2424 }
2525
26- if ( ! / ^ [ \w ] + \/ [ \w ] + $ / . test ( repository ) ) {
26+ if ( ! / ^ [ \w - ] + \/ [ \w - ] + $ / . test ( repository ) ) {
2727 throw new Error ( `Unsupported repository '${ input } '.` ) ;
2828 }
2929
Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ export function getRepositories(): Repository[] {
3636 const rawRepository = _rawRepository as RawRepository ;
3737
3838 assert . equal ( typeof rawRepository . repository , "string" ) ;
39- assert . ok ( / ^ \w + \/ \w + $ / . test ( rawRepository . repository ) ) ;
39+ assert . ok (
40+ / ^ [ \w - ] + \/ [ \w - ] + $ / . test ( rawRepository . repository ) ,
41+ `Invalid repository '${ rawRepository . repository } '` ,
42+ ) ;
4043 assert . equal ( typeof rawRepository . commit , "string" ) ;
4144
4245 const glob = Array . isArray ( rawRepository . glob )
You can’t perform that action at this time.
0 commit comments