Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Remove unneeded fuzzies variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Jan 8, 2014
1 parent e952fb0 commit 01484f9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions vendor/stringscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = function(string, abbreviation) {
string_length = string.length,
start_of_string_bonus,
abbreviation_score,
fuzzies=1,
final_score;

// Walk through abbreviation and add up scores.
Expand Down Expand Up @@ -101,8 +100,6 @@ module.exports = function(string, abbreviation) {
//final_score = (word_score + abbreviation_score) / 2;
final_score = ((abbreviation_score * (abbreviation_length / string_length)) + abbreviation_score) / 2;

final_score = final_score / fuzzies;

if (start_of_string_bonus && (final_score + 0.15 < 1)) {
final_score += 0.15;
}
Expand Down

0 comments on commit 01484f9

Please sign in to comment.