Below code enters the if clause below,
var title = "İnsanlar";
var keyword = "in";
title = title.toLowerCase();
if(title.indexOf(keyword) == -1)
{
alert(title);
}
when I did some debugging, I realised that title.charCodeAt(1)
returns 775 while keyword.charCodeAt(1)
returns 110. Which causes my application's search functionality to be broken.
How can I fix this ?