diff --git a/packages/gui/src/bridge/update/backend.js b/packages/gui/src/bridge/update/backend.js index bd5b680..9fcae26 100644 --- a/packages/gui/src/bridge/update/backend.js +++ b/packages/gui/src/bridge/update/backend.js @@ -203,7 +203,7 @@ function updateHandle (app, api, win, beforeQuit, quit, log) { value: { version, releaseNotes: versionData.body - ? (versionData.body.replace(/\r\n/g, '\n').replace(/https:\/\/github.com\/docmirror\/dev-sidecar/g, '').replace(/(?<=(^|\n))[ \t]*[ #]+/g, '') || '无') + ? (versionData.body.replace(/\r\n/g, '\n').replace(/https:\/\/github.com\/docmirror\/dev-sidecar/g, '').replace(/(?<=(^|\n))[ \t]*[ #]*#\s*/g, '') || '无') : '无' } }) diff --git a/packages/gui/src/bridge/update/front.js b/packages/gui/src/bridge/update/front.js index 85a0aad..f9330f1 100644 --- a/packages/gui/src/bridge/update/front.js +++ b/packages/gui/src/bridge/update/front.js @@ -144,21 +144,18 @@ function install (app, api) { title: '发现新版本:v' + value.version, cancelText: '暂不升级', okText: '升级', - width: 550, + width: 650, content: h => { if (value.releaseNotes) { const notes = [] if (typeof value.releaseNotes === 'string') { - const releaseNotes = value.releaseNotes.replace(/\r?\n/g, '\n').split('\n') - for (const note of releaseNotes) { - notes.push(