Skip to content

Wrong score in Partial Ratio #106

@fedxyz

Description

@fedxyz

Hi,

I am using 1.4.0, this gives a wrong results with partial ratio:

FuzzySearch.partialRatio("ttttttttt virtuale ggggggggggggvo zizzrztuta mmmmmle", "virtuale"); 

the score is 50, it has to be 100 imho.

The python version returns 100 too:

>>> fuzz.partial_ratio("ttttttttt virtuale ggggggggggggvo zizzrztuta mmmmmle", "virtuale")
100

Thanks for the help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions