Skip to content

Consecutive characters return more matches than expected #102

Open
@mauricioszabo

Description

@mauricioszabo

Description

If I filter for strings like aaaaa or tttt it returns more items than expected, both with filter and with ObjectArrayFilterer (didn't tested other filtering methods)

Steps to Reproduce

const z = require('zadeh')
z.filter(['one two', 'It is a test'], 'aaaaaa')
// => Returns ['It is a test'], even when there's only one "a" on it

Expected behavior:

To return nothing

Reproduces how often:

100%

Versions

3.0.0-beta.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions