* removeHtmlTagWithoutSpace * pre release
このコミットが含まれているのは:
コミット
d2765c8e34
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
読み込み中…
新しいイシューから参照