Skip to content

Commit

Permalink
fix(removeHtmlTagWithoutSpace): proper multiple tags slicing (#5)
Browse files Browse the repository at this point in the history
* removeHtmlTagWithoutSpace

* pre release
  • Loading branch information
sinkaroid authored Apr 19, 2023
1 parent 55e88b5 commit d2765c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
1 change: 1 addition & 0 deletions src/LustPress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit d2765c8

Please sign in to comment.