Skip to content
This repository has been archived by the owner on Nov 7, 2021. It is now read-only.

Remove non-valid characters before trimming whitespaces in Text.sanitize #33

Open
thomasgalliker opened this issue Jul 7, 2019 · 0 comments

Comments

@thomasgalliker
Copy link

I think you have to swap the two lines which trim the white spaces and the one which replaces non-valid characters from the string. If you replace non-valid chars before removing whitespaces, you can end up with multiple whitespaces e.g. if someone enters an address like this:
💔 Alpenblick😇👼

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant