Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade filters #364

Open
dino19981 opened this issue Feb 16, 2024 · 0 comments
Open

Upgrade filters #364

dino19981 opened this issue Feb 16, 2024 · 0 comments

Comments

@dino19981
Copy link

In all filters, the search starts with the first character of the search element, but the search element can consist of multiple words, for example on the screen "https://alpha.succinct.xyz/explorer", and it would be desirable to have the ability to enter only the id for search in this case. It is also desired that the search does not consider the case of words, which would simplify entering characters.

Here is the code if it were written in JavaScript.

function filterStrings(strings, searchStr) {
  return strings.filter((str) => {
    return str.toLowerCase().includes(searchStr.toLowerCase());
  });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant