mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 10:19:11 +02:00
Clean up Anilist descriptions
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "112.14.0",
|
"version": "112.14.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+2
-1
@@ -138,7 +138,8 @@ module.exports = class Util {
|
|||||||
|
|
||||||
static cleanAnilistHTML(html) {
|
static cleanAnilistHTML(html) {
|
||||||
let clean = html
|
let clean = html
|
||||||
.replace(/(<br>)+/g, '\n')
|
.replace(/\n/g, '')
|
||||||
|
.replace(/<br>/g, '\n')
|
||||||
.replace(/'/g, '\'')
|
.replace(/'/g, '\'')
|
||||||
.replace(/"/g, '"')
|
.replace(/"/g, '"')
|
||||||
.replace(/<\/?i>/g, '*')
|
.replace(/<\/?i>/g, '*')
|
||||||
|
|||||||
Reference in New Issue
Block a user