Compare commits

...

4 Commits

Author SHA1 Message Date
1894df882b 12.99.2 2021-12-14 23:13:31 +09:00
983599bdae Update 1639325650583-chart-v3.js 2021-12-14 23:13:09 +09:00
6319dd1bfb 12.99.1 2021-12-14 23:03:45 +09:00
d1ea8654e6 fix: YAMLファイルへのバックスペース文字混入対策 2021-12-14 23:03:18 +09:00
3 changed files with 7 additions and 2 deletions

View File

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

View File

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

View File

@ -4,6 +4,8 @@ module.exports = class chartV31639325650583 {
name = 'chartV31639325650583'
async up(queryRunner) {
await queryRunner.query(`DELETE FROM "__chart__per_user_drive" WHERE "group" IS NULL`);
await queryRunner.query(`DROP INDEX "public"."IDX_dd907becf76104e4b656659e6b"`);
await queryRunner.query(`DROP INDEX "public"."IDX_eddfed8fb40305a04c6f941050"`);
await queryRunner.query(`DROP INDEX "public"."IDX_f09d543e3acb16c5976bdb31fa"`);