diff --git a/README.md b/README.md index 8e3e5efd..3302bec7 100644 --- a/README.md +++ b/README.md @@ -150,12 +150,15 @@ yarn run start [Windows 商店下载](https://www.microsoft.com/zh-cn/p/yank-note-%e4%b8%80%e6%ac%be%e9%9d%a2%e5%90%91%e7%a8%8b%e5%ba%8f%e5%91%98%e7%9a%84-markdown-%e7%ac%94%e8%ae%b0%e5%ba%94%e7%94%a8/9n08bq8k8681?rtc=1#activetab=pivot:overviewtab) -### [v2.2.5](https://github.com/purocean/yn/releases/tag/v2.2.5) 2020-01-14 -1. 修复 frontend yarn.lock 问题 +### [v2.2.6](https://github.com/purocean/yn/releases/tag/v2.2.6) 2020-01-16 +1. 修复插入文档名称问题
展开查看更多版本记录 +### [v2.2.5](https://github.com/purocean/yn/releases/tag/v2.2.5) 2020-01-14 +1. 修复 frontend yarn.lock 问题 + ### [v2.2.4](https://github.com/purocean/yn/releases/tag/v2.2.4) 2020-01-14 1. 修复 frontend yarn.lock 问题 diff --git a/frontend/src/components/Filter.vue b/frontend/src/components/Filter.vue index 192dec4a..33ba6aa7 100644 --- a/frontend/src/components/Filter.vue +++ b/frontend/src/components/Filter.vue @@ -30,7 +30,7 @@ export default { this.show = f => { if (this.currentFile) { const relativePath = f.path.replace(this.currentFile.path.substr(0, this.currentFile.path.lastIndexOf('/')), '.') - this.$bus.emit('editor-insert-value', `[${f.name.replace(/\.[^.]$/, '')}](${encodeMarkdownLink(relativePath)})`) + this.$bus.emit('editor-insert-value', `[${f.name.replace(/\.[^.]+$/, '')}](${encodeMarkdownLink(relativePath)})`) } this.show = false } diff --git a/package.json b/package.json index 3a862696..bda44bd3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yank.note.yang", - "version": "2.2.5", + "version": "2.2.6", "description": "Yank Note 一款面向程序员的 Markdown 笔记应用", "main": "dist/app.js", "license": "Apache-2.0",