We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25207d0 commit 1340f8eCopy full SHA for 1340f8e
src/features/githubUtils.ts
@@ -51,6 +51,9 @@ export interface TokenValidationError {
51
export const scrubRepositoryUrl = (address: string): string => {
52
// Case-insensitive replace for github.com
53
let scrubbedAddress = address.replace(/https?:\/\/github\.com\//i, "");
54
+ if (scrubbedAddress.endsWith("/")) {
55
+ scrubbedAddress = scrubbedAddress.slice(0, -1);
56
+ }
57
// Case-insensitive check and remove for .git extension
58
if (scrubbedAddress.toLowerCase().endsWith(".git")) {
59
scrubbedAddress = scrubbedAddress.slice(0, -4);
0 commit comments