atom-community / atom-community/zadeh
Consecutive characters return more matches than expected
- Dominant language
- C++
- Stars
- 28
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
### 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
```js
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
Contributor guide
Research direction
Start with the public z.filter API and the ObjectArrayFilterer path named in the report, then reproduce the `aaaaaa` case against the shown input. Trace how consecutive query characters are counted and add or run a regression check showing that repeated characters return no matches when the input contains only one occurrence. Done means both filtering paths return nothing for the reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, javascript
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100