agsamantha/node_modules/form-data-encoder/lib/esm/util/escapeName.js
2024-10-02 15:15:21 -05:00

5 lines
150 B
JavaScript

const escapeName = (name) => String(name)
.replace(/\r/g, "%0D")
.replace(/\n/g, "%0A")
.replace(/"/g, "%22");
export default escapeName;