fix: handle git submodule link url

This commit is contained in:
EnixCoda 2021-02-15 20:34:32 +08:00
parent f3f9529e2b
commit c7fe0f2383
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

View file

@ -4,7 +4,7 @@ import { findNode } from 'utils/general'
const subModuleURLRegex = {
HTTP: /^https?:\/\/.*?$/,
HTTPGit: /^https:.*?\.git$/,
git: /^git@.*?:(.*?)\.git$/,
git: /^git@.*?:(.*?)\/(.*?)\.git$/,
}
function transformModuleGitURL(node: TreeNode, URL: string) {