Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Issue with filter by

Open
#202 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
angular, javascript
Domain
frontend

Research direction

The issue is in the filterBy filter from the angular-filter library. Look at the filter's implementation, likely in a file like dist/angular-filter.js or the source files. The bug appears to be a substring matching issue where 'Incident1' matches 'Incident10'. Examine the filtering logic for exact vs. partial matching. Write a test to reproduce the issue with two incidents named 'Incident1' and 'Incident10' to verify the fix.

Written by the indexing model from the issue text.

Description

I have the following code: <li ng-repeat="subItem in vm.FAAFreqs | filterBy:['Incident.IncidentName'] : item.Incident.IncidentName" ui-tree-node>

I have 2 incidents named "Incident1" and "Incident10". The filtering is causing Incident10 to appear twice, so I can only assume that the filterBy finds Incident1 inside of Incident10 and thinks it is a match and doesn't finish the entire search.

The problem resolves 100% if I change the name of Incident10 to anything else.

Dominant language
JavaScript
Stars
2.9k
Forks
319
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from a8m/angular-filter

All issues in a8m/angular-filter

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.