baz/doc/SANITIZATION.md
Ari Archer f4ea9444ea
6.0.0-pre : improve wording, update only on version change, add baz_setup.sh
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2023-02-13 00:20:57 +02:00

18 lines
339 B
Markdown

# sanitization
> i hate regex, its such a pain
>
> - Me, developing baz_sanitize function
basically, this sanitises stuff,
this is what is not allowed
- any whitespace
- characters : ", ', ~, !, #, \, /, $, %, ^, &, \*, (, ), =
- repeating `..`s
regex ( sed syntax ):
```sed
s/\s*//g; s/[\"\'~\!#\\\/\$%\^&\*\(\)\=]//g; s/\.\.//g
```