From cc190b77c1a27103e8efe3bc306f3cf1d31fdf18 Mon Sep 17 00:00:00 2001 From: tsukumi Date: Sat, 19 Aug 2023 20:33:41 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20[Client/Server]=20typo=20=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/utils/ProgramUtils.ts | 8 ++++---- server/app/utils/TSInformation.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/src/utils/ProgramUtils.ts b/client/src/utils/ProgramUtils.ts index 8c391977..831f8d33 100644 --- a/client/src/utils/ProgramUtils.ts +++ b/client/src/utils/ProgramUtils.ts @@ -199,10 +199,10 @@ export class ProgramUtils { } // 全角記号を半角記号に置換 - const synbol_zenkaku_table = '"#$%&'()+,-./:;<=>[\]^_`{|} '; - const synbol_hankaku_table = '"#$%&\'()+,-./:;<=>[\\]^_`{|} '; - for (let i = 0; i < synbol_zenkaku_table.length; i++) { - merged_table[synbol_zenkaku_table[i]] = synbol_hankaku_table[i]; + const symbol_zenkaku_table = '"#$%&'()+,-./:;<=>[\]^_`{|} '; + const symbol_hankaku_table = '"#$%&\'()+,-./:;<=>[\\]^_`{|} '; + for (let i = 0; i < symbol_zenkaku_table.length; i++) { + merged_table[symbol_zenkaku_table[i]] = symbol_hankaku_table[i]; } // 一部の半角記号を全角に置換 // 主に見栄え的な問題(全角の方が字面が良い) diff --git a/server/app/utils/TSInformation.py b/server/app/utils/TSInformation.py index ec6b765b..91408988 100644 --- a/server/app/utils/TSInformation.py +++ b/server/app/utils/TSInformation.py @@ -83,9 +83,9 @@ def __buildFormatStringTranslationTable(cls) -> None: merged_table = dict(zip(list(zenkaku_table), list(hankaku_table))) # 全角記号を半角記号に置換 - synbol_zenkaku_table = '"#$%&'()+,-./:;<=>[\]^_`{|} ' - synbol_hankaku_table = '"#$%&\'()+,-./:;<=>[\\]^_`{|} ' - merged_table.update(zip(list(synbol_zenkaku_table), list(synbol_hankaku_table))) + symbol_zenkaku_table = '"#$%&'()+,-./:;<=>[\]^_`{|} ' + symbol_hankaku_table = '"#$%&\'()+,-./:;<=>[\\]^_`{|} ' + merged_table.update(zip(list(symbol_zenkaku_table), list(symbol_hankaku_table))) merged_table.update({ # 一部の半角記号を全角に置換 # 主に見栄え的な問題(全角の方が字面が良い)