More strict sanitization (remove spaces, special characters)

pull/79/head
Piero Toffanin 2019-03-08 10:36:20 -05:00
rodzic e93a838412
commit cbf5e40027
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -16,6 +16,7 @@ module.exports = {
},
sanitize: function(filePath){
return filePath.replace(/(\/|\\)/g, "_");
filePath = filePath.replace(/[^\w.]/g, "_");
return filePath;
}
};