Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Allow matching in middle of string #20

Open
duetosymmetry opened this issue May 2, 2020 · 0 comments
Open

Allow matching in middle of string #20

duetosymmetry opened this issue May 2, 2020 · 0 comments

Comments

@duetosymmetry
Copy link

This only requires changing startsWith to includes. However, not everybody will want this behavior, so best to have it as an option. More generally, could take a binary comparison function cmp(a,b) which will take as values a=_option.get().textContent and b=event.target.value. The default comparison function would be a.toLowerCase().startsWith(b.toLowerCase()), mid-string matching would be with includes, case-sensitive would omit toLowerCase, etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant