@eversports/prepare-string
v2.6.0-2
Published
Prepares a given string. Will replace umlauts to ascii ae, ue, oe, sz. Replaces Whitespace to _ and removes all other characters
Downloads
27
Maintainers
Keywords
Readme
prepare-string
- String gets lowercased
- Replaces umlauts:
ä
toae
ö
tooe
ü
toue
ß
tosz
- Replaces and removes unnecessary whitespace
- Ever Whitespace character gets replace by a single
_
- Ever Whitespace character gets replace by a single
- Replaces everything but the characters
a-z
and_
Example
- This
Scheißgeile Tennisplätze!!!!
getsscheiszgeile_tennisplaetze