2019-05-13 09:39:17 -04:00

4 lines
78 B
JavaScript

export function sanitize(str) {
return str.replace(/[^A-Za-z0-9]/g, '-');
}