fix(removeHtmlTagWithoutSpace): proper multiple tags slicing (#5)

* removeHtmlTagWithoutSpace

* pre release
このコミットが含まれているのは:
Indrawan I 2023-04-20 02:14:52 +07:00 committed by GitHub
コミット d2765c8e34
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
2個のファイルの変更2行の追加1行の削除

ファイルの表示

@ -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": {

ファイルの表示

@ -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();
}