Skip to content

Commit

Permalink
Fixed exact match shortcut.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Parker committed Aug 13, 2009
1 parent f150a7b commit b22247c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion similar/similar.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ var MatchTree = function(parent, string, abbr, positions){

String.prototype.score = function(abbr){
// Cheat: if exact match, go ahead and just immediately return the highest score possible
if(this===abbr)return 1.0;
if(this==abbr)return 1.0;

// Set up the scoring options. These are all adding to or subtracting from a regular fact-of-match = 1
var options = String.scoring_options || {};
Expand Down

0 comments on commit b22247c

Please sign in to comment.