mirror of https://github.com/jkjoy/sunpeiwen.git
8 lines
230 B
JavaScript
8 lines
230 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
const escapeName = (name) => String(name)
|
||
|
.replace(/\r/g, "%0D")
|
||
|
.replace(/\n/g, "%0A")
|
||
|
.replace(/"/g, "%22");
|
||
|
exports.default = escapeName;
|