Skip to content

Commit

Permalink
Fix: [Client/Server] typo を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Aug 19, 2023
1 parent e0c9345 commit cc190b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions client/src/utils/ProgramUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
// 一部の半角記号を全角に置換
// 主に見栄え的な問題(全角の方が字面が良い)
Expand Down
6 changes: 3 additions & 3 deletions server/app/utils/TSInformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({
# 一部の半角記号を全角に置換
# 主に見栄え的な問題(全角の方が字面が良い)
Expand Down

0 comments on commit cc190b7

Please sign in to comment.