Skip to content

Commit 7311c5d

Browse files
authored
Add files via upload
1 parent 878064e commit 7311c5d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,13 +1078,13 @@ <h2>輸入法模式:</h2>
10781078
if (j < codesToDisplay.length) {
10791079
const result = codesToDisplay[j];
10801080
const code = result.code;
1081-
const candidatesForCode = currentCodemap[code];
10821081

10831082
let suffix = '';
1084-
// 檢查是否為第一候選字且編碼長度小於3
1085-
if (result.index === 0 && code.length < 3) {
1086-
suffix = '空';
1087-
} else if (candidatesForCode && candidatesForCode.length > 1) {
1083+
if (result.index === 0) {
1084+
if (code.length < 3) {
1085+
suffix = '空';
1086+
}
1087+
} else {
10881088
if (result.index < 9) {
10891089
const digit = (result.index + 1).toString();
10901090
suffix = fullWidthDigits[digit];

0 commit comments

Comments
 (0)