pstanoev / simple-svelte-autocomplete

Simple Autocomplete / typeahead component for Svelte
http://simple-svelte-autocomplete.surge.sh/
MIT License
464 stars 78 forks source link

on ajax search input case manipulation should be a setting #151

Closed kemalkanok closed 2 years ago

kemalkanok commented 2 years ago

Hi there

https://github.com/pstanoev/simple-svelte-autocomplete/blob/5dc522d5f9e12b4add2d18ff4626c44ebe01140f/src/SimpleAutocomplete.svelte#L234

in that line its forcing to lower casing data that should be in settings

kemalkanok commented 2 years ago

https://github.com/pstanoev/simple-svelte-autocomplete/blob/5dc522d5f9e12b4add2d18ff4626c44ebe01140f/src/SimpleAutocomplete.svelte#L325

this kind of special characters removals are causing problems while searching with special characters this should be in settings too

pstanoev commented 2 years ago

cleanUserText can be set to false for the user entered text. The keywords cleaning (result.toLowerCase().trim() ) added in version 2.4.2: lowercaseKeywords = false.