mbox

[1/2] util: add normalize function

Message ID 1503056719-24267-1-git-send-email-jonatan.schlag@ipfire.org
State New
Headers

Message

Jonatan Schlag Aug. 18, 2017, 9:45 p.m. UTC
  This function remove all non alpha numerical characters from a string
and substitute this characters with one -

So HELLO%%/$&/)%$%(&&HH becomes hello-hh

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 src/functions/functions.util | 10 ++++++++++
 1 file changed, 10 insertions(+)