6 lines
287 B
JavaScript
6 lines
287 B
JavaScript
const GIT_HOSTS = ["github.com", "gitlab.com", "bitbucket.org", "codeberg.org"];
|
|
export function looksLikeGitUrl(source) {
|
|
const normalized = source.replace(/^https?:\/\//, "");
|
|
return GIT_HOSTS.some((host) => normalized.startsWith(`${host}/`));
|
|
}
|
|
//# sourceMappingURL=git.js.map
|