small matching improvement

This commit is contained in:
Manuel Simon Hirsig
2015-10-07 01:21:04 +02:00
parent 0e70040682
commit 27faf026bd
+1 -1
View File
@@ -28,7 +28,7 @@ function fuzzy(input)
if match[1] then
local rating = 1
for i=3,getn(match) do
rating = rating * max(strlen(match[i]), 1)
rating = rating * strlen(match[i]) + 1
end
return rating
end