Skip to content

Commit

Permalink
[lix] fix github short links
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed May 21, 2024
1 parent defddb8 commit fea4d81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/LixTools.hx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ class LixTools {
addHaxelib(libName, parts[1]);

case "gh" | "github":
addGitLib(lib, "https" + source.substr(protocol.length));
var url = source.substr(protocol.length + 1);
if (!StringTools.startsWith(url, "/")) url = '//github.com/$url';
addGitLib(lib, 'https:$url');

case "http" | "https":
addGitLib(lib, source);
Expand Down

0 comments on commit fea4d81

Please sign in to comment.