diff options
Diffstat (limited to 'source/features/link-to-file-in-file-history.tsx')
-rw-r--r-- | source/features/link-to-file-in-file-history.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/link-to-file-in-file-history.tsx b/source/features/link-to-file-in-file-history.tsx index ef55a483..998a57cc 100644 --- a/source/features/link-to-file-in-file-history.tsx +++ b/source/features/link-to-file-in-file-history.tsx @@ -13,7 +13,7 @@ import {groupSiblings} from '../libs/group-buttons'; function init(): void | false { // /user/repo/commits/master/readme.md -> 'readme.md' // /user/repo/commits/master/ -> '' - const path = getRepoPath()!.replace(/^commits\/[^/]+\//, ''); + const path = getRepoPath()!.replace(/^commits\/[^/]+\/?/, ''); if (!path) { return false; } |