From 813b074d6b9ca04e4ca6ec010b905bab8ffbad31 Mon Sep 17 00:00:00 2001 From: Hoto Cocoa Date: Thu, 3 Oct 2019 12:31:31 +0900 Subject: [PATCH] Update HTMLBuilder to fix incorrect minify --- HTMLBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HTMLBuilder.js b/HTMLBuilder.js index e761389..56972f9 100644 --- a/HTMLBuilder.js +++ b/HTMLBuilder.js @@ -5,7 +5,7 @@ module.exports = class HTMLBuilder { } build(title, body, style = '', head = '') { - return `${title}${this.head}${head}${body}`.replace(/\s?(\n|\t)\s?/gm, '$1').replace(/(^\s*)/gm, '').replace(/>\s*/gm, '>'); + return `${title}${this.head}${head}${body}`.replace(/\s?(\n|\t)\s?/gm, '$1').replace(/(^\s*)/gm, '').replace(/>\t*/gm, '>'); } styleBuild(style = '') {