Skip to content

Commit 099d346

Browse files
shigmaulivz
authored andcommitted
fix: remove colon as separator (close: #1151) (#1236)
1 parent 19c21aa commit 099d346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vuepress/markdown/lib/snippet.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = function snippet (md, options = {}) {
2424
const start = pos + 3
2525
const end = state.skipSpacesBack(max, pos)
2626
const rawPath = state.src.slice(start, end).trim().replace(/^@/, root)
27-
const filename = rawPath.split(/[{:\s]/).shift()
27+
const filename = rawPath.split(/[{\s]/).shift()
2828
const content = fs.existsSync(filename) ? fs.readFileSync(filename).toString() : 'Not found: ' + filename
2929
const meta = rawPath.replace(filename, '')
3030

0 commit comments

Comments
 (0)