From 508c144f924a2e8f7753a8aba71c3da34555602d Mon Sep 17 00:00:00 2001 From: xiazeyu_2011 Date: Sat, 14 Jul 2018 18:25:27 +0800 Subject: [PATCH] chore: new beta version: 3.0.3-beta.1 --- CHANGELOG.md | 10 ++++++++++ index.js | 2 +- package.json | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6be6893..0d580ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ + +## 3.0.3-beta.1 (2018-07-14) + +* feat: add tagMode. ([e2ac803](https://github.com/EYHN/hexo-helper-live2d/commit/e2ac803)), closes [#122](https://github.com/EYHN/hexo-helper-live2d/issues/122) +* chore: update dependcies ([dd3d5da](https://github.com/EYHN/hexo-helper-live2d/commit/dd3d5da)) +* docs: update CHANGELOG ([b9f107a](https://github.com/EYHN/hexo-helper-live2d/commit/b9f107a)) +* docs: update issue template ([eaa22a4](https://github.com/EYHN/hexo-helper-live2d/commit/eaa22a4)) + + + ## 3.0.3 (2018-05-19) diff --git a/index.js b/index.js index 0ca2af4..fe874a1 100755 --- a/index.js +++ b/index.js @@ -201,7 +201,7 @@ if (config.enable) { const scriptToInject = `L2Dwidget.init(${JSON.stringify(config)});`; const contentToInject = ``; let newHtmlContent = htmlContent; - if (/([\n\r\s\t]*<\/body>)/i.test(htmlContent)) { + if ((/([\n\r\s\t]*<\/body>)/i).test(htmlContent)) { const lastIndex = htmlContent.lastIndexOf(''); newHtmlContent = `${htmlContent.substring(0, lastIndex)}${contentToInject}${htmlContent.substring(lastIndex, htmlContent.length)}`; // eslint-disable-line no-magic-numbers diff --git a/package.json b/package.json index 3f335fc..a5e6b0f 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-helper-live2d", - "version": "3.0.3", + "version": "3.0.3-beta.1", "description": "Add the Sseexxyyy live2d to your hexo!", "main": "./index.js", "devDependencies": {