1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Check if url starts with https://github.com

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2022-01-03 15:25:30 +02:00
parent 66d8e698fd
commit 2bc7757907

View File

@ -33,7 +33,7 @@ export class GitHubVersionChecker implements LensExtensionLatestVersionChecker {
} }
public async getLatestVersion(manifest: LensExtensionManifest) { public async getLatestVersion(manifest: LensExtensionManifest) {
if (!manifest.homepage?.includes("https://github.com")) { if (!manifest.homepage?.startsWith("https://github.com")) {
return null; return null;
} }