From b1f5d8dcbed7b9e0da6f5372ad73974757bca9f4 Mon Sep 17 00:00:00 2001 From: sinkaroid Date: Thu, 20 Apr 2023 02:08:50 +0700 Subject: [PATCH 1/2] removeHtmlTagWithoutSpace --- src/LustPress.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LustPress.ts b/src/LustPress.ts index 8720270..be4e9d9 100644 --- a/src/LustPress.ts +++ b/src/LustPress.ts @@ -72,6 +72,7 @@ class LustPress { removeHtmlTagWithoutSpace(str: string): string { str = str.replace(/(\r\n|\n|\r|\t)/gm, ""); str = str.replace(/\\/g, ""); + str = str.replace(/\s+/g, " "); return str.trim(); } From 285aca427abcffe8e9fdf2212d9d67602c48b48e Mon Sep 17 00:00:00 2001 From: sinkaroid Date: Thu, 20 Apr 2023 02:09:20 +0700 Subject: [PATCH 2/2] pre release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 20c91ba..b62630b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lustpress", - "version": "1.6.2-alpha", + "version": "1.6.3-alpha", "description": "RESTful and experimental API for PornHub and other porn sites, which official is lack even isn't exist.", "main": "build/src/index.js", "scripts": {