From 89c16eadec8dfcfb15f8ee9c8b6b9d3c388817b8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 14 Dec 2021 23:03:18 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20YAML=E3=83=95=E3=82=A1=E3=82=A4?= =?UTF-8?q?=E3=83=AB=E3=81=B8=E3=81=AE=E3=83=90=E3=83=83=E3=82=AF=E3=82=B9?= =?UTF-8?q?=E3=83=9A=E3=83=BC=E3=82=B9=E6=96=87=E5=AD=97=E6=B7=B7=E5=85=A5?= =?UTF-8?q?=E5=AF=BE=E7=AD=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/locales/index.js b/locales/index.js index a0181cd7a..8350b3d9c 100644 --- a/locales/index.js +++ b/locales/index.js @@ -46,7 +46,10 @@ const primaries = { 'zh': 'CN', }; -const locales = languages.reduce((a, c) => (a[c] = yaml.load(fs.readFileSync(`${__dirname}/${c}.yml`, 'utf-8')) || {}, a), {}); +// 何故か文字列にバックスペース文字が混入することがあり、YAMLが壊れるので取り除く +const clean = (text) => text.replace(new RegExp(String.fromCodePoint(0x08), 'g'), ''); + +const locales = languages.reduce((a, c) => (a[c] = yaml.load(clean(fs.readFileSync(`${__dirname}/${c}.yml`, 'utf-8'))) || {}, a), {}); module.exports = Object.entries(locales) .reduce((a, [k ,v]) => (a[k] = (() => { From 6d9d9e5322b45d868c61db46c6927c656e924a44 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 14 Dec 2021 23:03:45 +0900 Subject: [PATCH 2/2] 12.99.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 30bbc0ea4..94aa2ec87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "misskey", - "version": "12.99.0", + "version": "12.99.1", "codename": "indigo", "repository": { "type": "git",