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

Optimizations and clean up #1

Closed gorakhargosh closed 13 years ago

gorakhargosh commented 13 years ago

I've managed to squeeze more juice out of the scoring implementation with all the tests still passing.

Cheers, Gora Khargosh.

joshaven commented 13 years ago

Thanks, I've been living with some things that I didn't like about my string_score... I haven't gotten around to fix them. Maybe they have been all cleaned up. :-)