Skip to content

Commit dd00eba

Browse files
committed
improve source link for Vue.filter, fixes vuejs#894
1 parent e32eb72 commit dd00eba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

themes/vue/source/js/common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
function createSourceSearchPath(query) {
3030
query = query
3131
.replace(/\([^\)]*?\)/g, '')
32+
.replace(/(Vue\.)(\w+)/g, '$1$2" OR "$2')
3233
.replace(/vm\./g, 'Vue.prototype.')
3334
return 'https://github.com/search?utf8=%E2%9C%93&q=repo%3Avuejs%2Fvue+extension%3Ajs+' + encodeURIComponent('"' + query + '"') + '&type=Code'
3435
}

0 commit comments

Comments
 (0)