Skip to content

Commit 4fbfa2e

Browse files
committed
refactor($theme-default): refactor bitbucket edit links
1 parent c61c6da commit 4fbfa2e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/@vuepress/theme-default/components/PageEdit.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ export default {
8080
methods: {
8181
createEditLink (repo, docsRepo, docsDir, docsBranch, path) {
8282
const bitbucket = /bitbucket.org/
83-
if (bitbucket.test(repo)) {
84-
const base = outboundRE.test(docsRepo) ? docsRepo : repo
83+
if (bitbucket.test(docsRepo)) {
8584
return (
8685
base.replace(endingSlashRE, '')
8786
+ `/src`

0 commit comments

Comments
 (0)