Skip to content

Commit

Permalink
refactor($theme-default): refactor bitbucket edit links
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopkovacs committed Jul 31, 2020
1 parent c61c6da commit 65bae3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@vuepress/theme-default/components/PageEdit.vue
Expand Up @@ -80,8 +80,8 @@ export default {
methods: {
createEditLink (repo, docsRepo, docsDir, docsBranch, path) {
const bitbucket = /bitbucket.org/
if (bitbucket.test(repo)) {
const base = outboundRE.test(docsRepo) ? docsRepo : repo
if (bitbucket.test(docsRepo)) {
const base = docsRepo
return (
base.replace(endingSlashRE, '')
+ `/src`
Expand Down

0 comments on commit 65bae3d

Please sign in to comment.