From 190f451749b89ad65dcdd2b907e00172cc8847b6 Mon Sep 17 00:00:00 2001 From: Alexandr <66871322+AlexSciFier@users.noreply.github.com> Date: Sat, 14 Oct 2023 13:26:11 +0300 Subject: [PATCH 1/2] fix: regex doesn't parse header --- server/routes/api/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/api/utils/index.js b/server/routes/api/utils/index.js index d5424e9..2eba0bf 100644 --- a/server/routes/api/utils/index.js +++ b/server/routes/api/utils/index.js @@ -36,7 +36,7 @@ export default async function (fastify, opts) { return { title: "", desc: "", icon: "" }; } let contentType = res.headers["content-type"]; - let matches = contentType.match(/charset=\s*"?(.[^\"]+)"?$/gim); + let matches = contentType.match(/charset=\s*"?(.[^\"]+)"?$/i); let encoding = matches?.[1] || "utf-8"; let resData = await res.data; let html = new TextDecoder(encoding.toLowerCase()).decode(resData); From 3075cc533a302a5c97226e52799c7a8a21f69bf8 Mon Sep 17 00:00:00 2001 From: Alexandr <66871322+AlexSciFier@users.noreply.github.com> Date: Sat, 14 Oct 2023 13:27:40 +0300 Subject: [PATCH 2/2] v1.4.11 --- frontend/package-lock.json | 4 ++-- frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index b0f17dc..398c7ad 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "neonlink-frontend", - "version": "1.4.10", + "version": "1.4.11", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "neonlink-frontend", - "version": "1.4.10", + "version": "1.4.11", "dependencies": { "@dnd-kit/core": "^6.0.8", "@dnd-kit/modifiers": "^6.0.1", diff --git a/frontend/package.json b/frontend/package.json index 1e60119..2ce9ef7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "neonlink-frontend", - "version": "1.4.10", + "version": "1.4.11", "private": true, "dependencies": { "@dnd-kit/core": "^6.0.8",