]> git.ipfire.org Git - people/ms/network.git/commit
util: add normalize function
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Fri, 18 Aug 2017 11:45:18 +0000 (13:45 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Aug 2017 12:55:51 +0000 (14:55 +0200)
commita8d8d2c515148e1ccc411ac4f3b3f039d748af6e
tree1a2e83c7ac40322560f477757ecd927474ecdb96
parent3ff5849f3772dbf1cf6b2d6d1e174e01e29dcd6d
util: add normalize function

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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.util