Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
chore: new beta version: 3.0.3-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazeyu committed Jul 14, 2018
1 parent e2ac803 commit 508c144
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="3.0.3-beta.1"></a>
## <small>3.0.3-beta.1 (2018-07-14)</small>

* 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))



<a name="3.0.3"></a>
## <small>3.0.3 (2018-05-19)</small>

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ if (config.enable) {
const scriptToInject = `L2Dwidget.init(${JSON.stringify(config)});`;
const contentToInject = `<script src="${scriptUrlToInject}"></script><script>${scriptToInject}</script>`;
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('</body>');
newHtmlContent = `${htmlContent.substring(0, lastIndex)}${contentToInject}${htmlContent.substring(lastIndex, htmlContent.length)}`; // eslint-disable-line no-magic-numbers
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 508c144

Please sign in to comment.