Contains case insensitive
I have the following: if (referrer.indexOf(“Ral”) == -1) { … } What I like to do is to make Ral case insensitive, so that it can be RAl, rAl, etc. and still match. Is there a way to say that Ral has to be case-insensitive? 14 Answers 14 Add .toUpperCase() after referrer. This method turns … Read more