Skip to content

Commit

Permalink
fix: import CI 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Collection50 committed Jul 12, 2024
1 parent 672e8e1 commit 44db24e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/_internal/hangul.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,18 @@ export function binaryAssembleHangulCharacters(source: string, nextCharacter: st
return combineJungseong(`${lastJamo}${nextCharacter}`)();
}

if (canBeJungsung(`${secondaryLastJamo}${lastJamo}`) && canBeJongsung(nextCharacter)) {
return combineJungsung(`${secondaryLastJamo}${lastJamo}`)(nextCharacter);
if (canBeJungseong(`${secondaryLastJamo}${lastJamo}`) && canBeJongseong(nextCharacter)) {
return combineJungseong(`${secondaryLastJamo}${lastJamo}`)(nextCharacter);
}

if (canBeJungsung(lastJamo) && canBeJongsung(nextCharacter)) {
return combineJungsung(lastJamo)(nextCharacter);
if (canBeJungseong(lastJamo) && canBeJongseong(nextCharacter)) {
return combineJungseong(lastJamo)(nextCharacter);
}

const fixVowel = combineJungsung;
const combineJongsung = fixVowel(
canBeJungsung(`${restJamos[1]}${restJamos[2]}`) ? `${restJamos[1]}${restJamos[2]}` : restJamos[1]
const fixVowel = combineJungseong;

const combineJongseong = fixVowel(
canBeJungseong(`${restJamos[1]}${restJamos[2]}`) ? `${restJamos[1]}${restJamos[2]}` : restJamos[1]
);

const lastConsonant = lastJamo;
Expand Down

0 comments on commit 44db24e

Please sign in to comment.