최현영

Finally Highway congest function Fixed

......@@ -747,6 +747,7 @@ function roadcongest(eventObj, msg){
var jsonForcongest = obj;
var number = msg.replace('번', '').trim();
var iscount = 0;
var index = 0;
console.log(number);
count = 0;
console.log(count);
......@@ -771,9 +772,12 @@ function roadcongest(eventObj, msg){
}
roadnumberstringLength = roadnumberstring.length;
if(roadnumberstringLength != 0){
iscount = (roadnumberstringLength % 5);
for(var i = 0; i < (5-iscount); i++ ){
roadnumberstring[roadnumberstringLength + i] = "Out of range";
roadnumberstring[roadnumberstringLength] = "이상입니다.";
index = (roadnumberstringLength % 5);
if(index != 0){
for(var i = 1; i <= (4-index); i++ ){
roadnumberstring[roadnumberstringLength + i] = "Out of range";
}
}
}
......