joshaven / string_score

JavaScript string ranking 0 for no match upto 1 for perfect... "String".score("str"); //=> 0.825
MIT License
840 stars 62 forks source link

Changed character selector from [i] to .charAt(i) so ie7 would be happy. #8

Closed pjhoberman closed 13 years ago

pjhoberman commented 13 years ago

ie7 can't handle "banana"[2], but loves it some "banana".charAt(2).