nol13 / fuzzball.js

Easy to use and powerful fuzzy string matching, port of fuzzywuzzy.
MIT License
516 stars 40 forks source link

Update fuzzball_lite.js #7

Closed arthurtalkgoal closed 6 years ago

arthurtalkgoal commented 6 years ago

There is no need to console.log the default scorer. Plus it create a lot of logs in the webserver (nodejs)

nol13 commented 6 years ago

Hmm, ya I think originally was logging these to make clear that the default scorer is different than the default scorer in fuzzywuzzy, but I see your point. If going to take it out here should probably take these out from fuzzball.js and fullball_ultra_lite.js as well though.

Explicitly setting the scorer from options with {scorer: fuzz.ratio} would silence the logs too, but ya the default behavior probably shouldn't flood logs with annoying useless messages.