I would like to make a suggestion to add the ability to switch between vanilla string filters and regex filters:
//Suggested modification of line 34 of Select.svelte and inclusion of a boolean pattern property defaulted to false
export let pattern = false;
export let itemFilter = (label, filterText, pattern) => pattern ? new RegExp(filterText, 'gi').test(`${label}`) : `${label}`.toLowerCase().includes(filterText.toLowerCase());
Update: It appears there is an option to override the itemFilter function so this topic may be moot. It can be closed, sorry for the noise without fully reading the docs.
I would like to make a suggestion to add the ability to switch between vanilla string filters and regex filters:
Update: It appears there is an option to override the itemFilter function so this topic may be moot. It can be closed, sorry for the noise without fully reading the docs.