kopia lustrzana https://github.com/OpenDroneMap/NodeODM
More strict sanitization (remove spaces, special characters)
rodzic
e93a838412
commit
cbf5e40027
|
@ -16,6 +16,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
sanitize: function(filePath){
|
sanitize: function(filePath){
|
||||||
return filePath.replace(/(\/|\\)/g, "_");
|
filePath = filePath.replace(/[^\w.]/g, "_");
|
||||||
|
return filePath;
|
||||||
}
|
}
|
||||||
};
|
};
|
Ładowanie…
Reference in New Issue