how can we remove white space auto when we copy paste words in search bar?

Hi i want to remove white space automatically as its causing problems while searching and copy pasting
10 Replies
Ali Abbas
Ali AbbasOP15mo ago
@Answer Overflow
Patrick Boivin
Patrick Boivin15mo ago
You want to remove all whitespace, or just trim the start/end?
Ali Abbas
Ali AbbasOP15mo ago
@pboivin thanks for your time just want to trim white space
toeknee
toeknee15mo ago
They should be auto trimmed by default if I rememebr correctly.
Patrick Boivin
Patrick Boivin15mo ago
Yeah, pretty sure it works the same in v2 and v3. The whitespace at the start/end is trimmed, and the words are combined to form an "and" query. So if you search for " one two ", it should return the results that contain the words "one" and "two". @aliabbas8356 Can you explain the issue you're having? What exactly are you pasting in the search bar, can you give an example?
Ali Abbas
Ali AbbasOP15mo ago
@pboivinI understand my problem i have entered a space inside product name like i have product named as Mobile1 and i entered like space Mobile1 in database i thinks thats why my results are not showing when i use search is there ia any way to sensitize the data before save to database using TextInput.
Patrick Boivin
Patrick Boivin15mo ago
What database are you using?
Ali Abbas
Ali AbbasOP15mo ago
@pboivin mysql
Patrick Boivin
Patrick Boivin15mo ago
Ok. Well are you sure it's a regular space you're using? Could it be a non-breaking space maybe?
Ali Abbas
Ali AbbasOP15mo ago
@pboivin thanks for you reply
Want results from more Discord servers?
Add your server