Skip to content

Conversation

john-guerra
Copy link

The current Input.Search, won't return values where the string is not at the beginning

viewof old = Inputs.search(["Control", "BallControl"], { query: "con" }) // IMHO should return two results

I propose either adding a full parameter that can be set to true if one wants this behaviour

viewof propossed = Inputs.search(["Control", "BallControl"], {
  query: "con",
  full: true
}) // Returns two results

see: https://observablehq.com/d/0645386b5b3c5499

@mootari
Copy link
Member

mootari commented Oct 30, 2022

@john-guerra Committing yarn.lock was probably an accident?

@john-guerra
Copy link
Author

Yes, by accident

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

Successfully merging this pull request may close these issues.

2 participants