diff options
Diffstat (limited to 'source/github-helpers/github-url.ts')
-rw-r--r-- | source/github-helpers/github-url.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/github-helpers/github-url.ts b/source/github-helpers/github-url.ts index 97c347a0..489f4f9e 100644 --- a/source/github-helpers/github-url.ts +++ b/source/github-helpers/github-url.ts @@ -67,7 +67,7 @@ export default class GitHubURL { } get pathname() { - return `/${this.user}/${this.repository}/${this.route}/${this.branch}/${this.filePath}`.replace(/\/+$/, ''); + return `/${this.user}/${this.repository}/${this.route}/${this.branch}/${this.filePath}`.replace(/((undefined)?\/)+$/g, ''); } set pathname(pathname) { |