Commit 5efe34ff authored by 18신대성's avatar 18신대성

자잘한 Input 오류 수정

parent e974a86e
......@@ -40,16 +40,16 @@ Input.convert = function()
// 모음쌍 체크
else if (this.input[i] >= ''.charCodeAt(0) && this.input[i + 1] >= ''.charCodeAt(0))
{
switch (String.fromCharCode(this.input[i]) | String.fromCharCode(this.input[i + 1]))
switch (String.fromCharCode(this.input[i]) + String.fromCharCode(this.input[i + 1]))
{
case '' | '': krInput += ''; vowels.push(krInput.length - 1); i++; break;
case '' | '': krInput += ''; vowels.push(krInput.length - 1); i++; break;
case '' | '': krInput += ''; vowels.push(krInput.length - 1); i++; break;
case '' | '': krInput += ''; vowels.push(krInput.length - 1); i++; break;
case '' | '': krInput += ''; vowels.push(krInput.length - 1); i++; break;
case '' | '': krInput += ''; vowels.push(krInput.length - 1); i++; break;
case '' | '': krInput += ''; vowels.push(krInput.length - 1); i++; break;
default: break; // 모음쌍을 만들지 못함.
case 'ㅗㅏ': krInput += ''; vowels.push(krInput.length - 1); i++; break;
case 'ㅗㅐ': krInput += ''; vowels.push(krInput.length - 1); i++; break;
case 'ㅗㅣ': krInput += ''; vowels.push(krInput.length - 1); i++; break;
case 'ㅜㅓ': krInput += ''; vowels.push(krInput.length - 1); i++; break;
case 'ㅜㅔ': krInput += ''; vowels.push(krInput.length - 1); i++; break;
case 'ㅜㅣ': krInput += ''; vowels.push(krInput.length - 1); i++; break;
case 'ㅡㅣ': krInput += ''; vowels.push(krInput.length - 1); i++; break;
default: krInput += String.fromCharCode(this.input[i]); vowels.push(krInput.length - 1); break; // 모음쌍을 만들지 못함.
}
}
// 나머지 자음 및 남는 모음들
......@@ -60,6 +60,7 @@ Input.convert = function()
}
}
this.convInput = krInput;
console.log(vowels);
}
Input.inputField =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment