diff --git a/apis/fandom.js b/apis/fandom.js index f364a17..26d8efc 100644 --- a/apis/fandom.js +++ b/apis/fandom.js @@ -56,7 +56,7 @@ module.exports = { data = data.replaceAll(' target="_blank" rel="nofollow noreferrer noopener"', '') data = data.replaceAll(/ class="external.+?"/g, '') // Remove non necesary new lines - data = data.split("\n").filter(e=>{return e.replaceAll(/ | |\n/g, '').length}).join("\n") + data = data.split("\n").filter(e=>{return e.replaceAll(/ |\t|\n/g, '').length}).join("\n") // Make prettier data = data.replaceAll("
", "
") data = data.replaceAll("
", "
") @@ -121,7 +121,7 @@ module.exports = { } // Remove non necesary new lines - data = data.split("\n").filter(e=>{return e.replaceAll(/ | |\n/g, '').length}).join("\n") + data = data.split("\n").filter(e=>{return e.replaceAll(/ |\t|\n/g, '').length}).join("\n") } catch (err) { res.error('Error formatting data', 500) return; diff --git a/apis/greyscale.js b/apis/greyscale.js index 433e411..487edf2 100644 --- a/apis/greyscale.js +++ b/apis/greyscale.js @@ -20,7 +20,7 @@ module.exports = { image: 'data:image/png;base64,' + outputBuffer.toString('base64') }) }) - .catch(err => { + .catch(() => { res.error('Could not generate', 500); return; }) diff --git a/apis/gun.js b/apis/gun.js index 2a73982..bad0931 100644 --- a/apis/gun.js +++ b/apis/gun.js @@ -31,7 +31,7 @@ module.exports = { }) }) }) - .catch(err => { + .catch(() => { res.error('Could not generate', 500); return; }) diff --git a/apis/invert.js b/apis/invert.js index c6cc11f..da3617a 100644 --- a/apis/invert.js +++ b/apis/invert.js @@ -20,7 +20,7 @@ module.exports = { image: 'data:image/png;base64,' + outputBuffer.toString('base64') }) }) - .catch(err => { + .catch(() => { res.error('Could not generate', 500); return; }) diff --git a/apis/jail.js b/apis/jail.js index e6d3f05..7b7fe01 100644 --- a/apis/jail.js +++ b/apis/jail.js @@ -31,7 +31,7 @@ module.exports = { }) }) }) - .catch(err => { + .catch(() => { res.error('Could not generate', 500); return; }) diff --git a/apis/uncover.js b/apis/uncover.js index c933674..8fa63a6 100644 --- a/apis/uncover.js +++ b/apis/uncover.js @@ -31,7 +31,7 @@ module.exports = { }) }) }) - .catch(err => { + .catch(() => { res.error('Could not generate', 500); return; }) diff --git a/html/index.html b/html/index.html index 84ac288..7ab0b29 100644 --- a/html/index.html +++ b/html/index.html @@ -41,7 +41,7 @@