Commit 6e55e6d0 authored by 18류지석's avatar 18류지석

이상한 글자 단어등급 -1 반환

parent 4f1d3e52
......@@ -39,6 +39,7 @@ WordReader.getWordTyping = function(stringText)
var temp = 0;
for(var i = 0; i < stringText.length; i++)
{
if(stringText.charCodeAt(i) < parseInt('0xac00',16) || stringText.charCodeAt(i) > parseInt('0xd7af',16)) return -1;
temp += parseFloat(firstSound(stringText.charAt(i))) + middleSound(stringText.charAt(i)) + lastSound(stringText.charAt(i));
}
return temp;
......
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