Merge remote-tracking branch 'upstream/master'

This commit is contained in:
ThinaticSystem 2021-12-14 23:06:04 +09:00
commit 56ee66a20d
2 changed files with 5 additions and 2 deletions

View File

@ -47,7 +47,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] = (() => {

View File

@ -1,6 +1,6 @@
{
"name": "honisskey",
"version": "12.99.0",
"version": "12.99.1",
"codename": "indigo",
"repository": {
"type": "git",