You are here: irt.org | FAQ | JavaScript | Bugs | Q1071 [ previous next ]
Symptom: if (astring.indexOf(bstring.charAt(i)) !=-1) returns the index of the current bstring char in bstring instead of in astring.
Workaround: ch = bstring.charAt(i); if (astring.indexOf(ch) !=-1) ...