1
I created an application in React Enable and it searches online via POST. It works well, the point is that some devices include a space at the end of words, ex:
The user types natação
, but the phone sends natação_
with a space at the end (put underline just to facilitate the vision).
How do I remove the end space before making the query?
thanks, just one thing: if you have spaces between words it excludes too? because only need exclusion at the end
– Italo Rodrigo
@Italorodrigo Não.
trim
is only at the beginning and end of theString
all. View documentation– Isac