3 Commits

Author SHA1 Message Date
Indrawan I
ac1a6d82fb ci: sunset workflows for node 14.x, use 16 instead (#7) 2023-04-20 02:40:00 +07:00
Indrawan I
2b682791d2 docs(CLOSING_REMARKS): add Alternative-links url (#6) 2023-04-20 02:29:18 +07:00
Indrawan I
d2765c8e34 fix(removeHtmlTagWithoutSpace): proper multiple tags slicing (#5)
* removeHtmlTagWithoutSpace

* pre release
2023-04-20 02:14:52 +07:00
12 changed files with 12 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v3

View File

@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v3

View File

@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v3

View File

@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v3

View File

@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v3

View File

@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v3

View File

@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v3

View File

@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
node-version: [14.x]
node-version: [16.x]
steps:
- uses: actions/checkout@v3

View File

@@ -19,4 +19,4 @@ Core dependencies:
# Alternative-links
Just in case if https://lust.scathach.id down, here some alternative deployment
- TBA
- https://lustpress.cyclic.app

View File

@@ -71,7 +71,7 @@ Don't make it long, make it short, all processed through single rest
## Prerequisites
<table>
<td><b>NOTE:</b> NodeJS 14.x or higher</td>
<td><b>NOTE:</b> NodeJS 16.x or higher</td>
</table>
To handle several requests from each website, You will also need [Redis](https://redis.io/) for persistent caching, free tier is available on [Redis Labs](https://redislabs.com/), You can also choose another adapters as we using [keyv](https://github.com/jaredwray/keyv) Key-value storage with support for multiple backends. When you choosing your own adapter, all data must be stored with `<Buffer>` type.

View File

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

View File

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