AI_botter/node_modules/form-data-encoder/lib/esm/util/escapeName.js

6 lines
150 B
JavaScript
Raw Normal View History

2024-05-01 02:46:10 +01:00
const escapeName = (name) => String(name)
.replace(/\r/g, "%0D")
.replace(/\n/g, "%0A")
.replace(/"/g, "%22");
export default escapeName;