meta-sanitizer
Version:
This lib contain useful functions to sanitize strings.
16 lines (15 loc) • 496 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.filterCommandChars = void 0;
const engine_1 = require("./engine");
function filterCommandChars(dataToSanitize, moreChars = []) {
let commandChars = ["'", "<", ">", "-", '/', '\\'];
commandChars.concat(moreChars);
try {
return (0, engine_1.SanitizerEngineExcluder)(dataToSanitize, commandChars);
}
catch (e) {
throw e;
}
}
exports.filterCommandChars = filterCommandChars;