You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2024. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This only requires changing
startsWith
toincludes
. However, not everybody will want this behavior, so best to have it as an option. More generally, could take a binary comparison functioncmp(a,b)
which will take as valuesa=_option.get().textContent
andb=event.target.value
. The default comparison function would bea.toLowerCase().startsWith(b.toLowerCase())
, mid-string matching would be withincludes
, case-sensitive would omittoLowerCase
, etc.The text was updated successfully, but these errors were encountered: