feat: format

This commit is contained in:
sanix-darker 2023-06-23 23:57:57 +02:00
parent dc317f8983
commit 444d738f8e
No known key found for this signature in database
GPG Key ID: CBEACFD86250B2A1

View File

@ -936,6 +936,6 @@ func EqualMatch(caseSensitive bool, normalize bool, forward bool, text *util.Cha
}
}
score := (scoreMatch + int(bonusBoundaryWhite)) * lenPattern + (bonusFirstCharMultiplier-1) * int(bonusBoundaryWhite)
score := (scoreMatch+int(bonusBoundaryWhite))*lenPattern + (bonusFirstCharMultiplier-1)*int(bonusBoundaryWhite)
return Result{trimmedLen, trimmedLen + lenPattern, score}, nil
}