Skip to content

Commit 5573f19

Browse files
committed
Another fix of topcoder-lib-setup script
1 parent 69246c5 commit 5573f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/topcoder-lib-setup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const HELP = [{
4646
* into NPM's install command.
4747
*/
4848
function generateTargetPackage(entry) {
49-
if (entry[1].match(/^https?:\/\//)) return entry[1];
50-
if (entry[1].match(/^[^~]/)) return `${entry[0]}@${entry[1].slice(1)}`;
49+
if (entry[1].match(/^(git\+)?https?:\/\//)) return entry[1];
50+
if (entry[1].match(/^[\^~]/)) return `${entry[0]}@${entry[1].slice(1)}`;
5151
return `${entry[0]}@${entry[1]}`;
5252
}
5353

0 commit comments

Comments
 (0)