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