Remove comments
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
201f1d0642
commit
43dba62434
@ -1,21 +1,6 @@
|
|||||||
const clean = require('string-sanitizer-fix');
|
const clean = require('string-sanitizer-fix');
|
||||||
const log = require('../utils/log.utils');
|
const log = require('../utils/log.utils');
|
||||||
|
|
||||||
/*
|
|
||||||
string.sanitize("a.bc@d efg#h"); // abcdefgh
|
|
||||||
string.sanitize.keepSpace("a.bc@d efg#h"); // abcd efgh
|
|
||||||
string.sanitize.keepUnicode("a.bc@d efg#hক"); // abcd efghক
|
|
||||||
string.sanitize.addFullstop("a.bc@d efg#h"); // abcd.efgh
|
|
||||||
string.sanitize.addUnderscore("a.bc@d efg#h"); // abcd_efgh
|
|
||||||
string.sanitize.addDash("a.bc@d efg#h"); // abcd-efgh
|
|
||||||
string.sanitize.removeNumber("@abcd efgh123"); // abcdefgh
|
|
||||||
string.sanitize.keepNumber("@abcd efgh123"); // abcdefgh123
|
|
||||||
string.addFullstop("abcd efgh"); // abcd.efgh
|
|
||||||
string.addUnderscore("@abcd efgh"); // @abcd_efgh
|
|
||||||
string.addDash("@abcd efgh"); // @abcd-efgh
|
|
||||||
string.removeSpace("@abcd efgh"); // @abcdefgh
|
|
||||||
*/
|
|
||||||
|
|
||||||
function removeNonAlphanumeric(inputString) { // Should be able to replace sanitizer module
|
function removeNonAlphanumeric(inputString) { // Should be able to replace sanitizer module
|
||||||
return inputString.replace(/[^a-zA-Z0-9]/g, '');
|
return inputString.replace(/[^a-zA-Z0-9]/g, '');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user