Skip to content

Commit 65bae3d

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ 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)) {
84+
const base = docsRepo
8585
return (
8686
base.replace(endingSlashRE, '')
8787
+ `/src`

0 commit comments

Comments
 (0)