Files
NapCatQQ/.pnpm-store/v3/files/14/9b7aef0c4fecd0f2e776f1aaba6f8c4bef6929cf2f886bf36aaa9644ddb8476afb6d57ae4135d8b3b89e5ce88f1a7e5f2ebda91a92508f97ad7d409885c270
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

23 lines
519 B
Plaintext

/** Used to escape characters for inclusion in compiled string literals. */
var stringEscapes = {
'\\': '\\',
"'": "'",
'\n': 'n',
'\r': 'r',
'\u2028': 'u2028',
'\u2029': 'u2029'
};
/**
* Used by `_.template` to escape characters for inclusion in compiled string literals.
*
* @private
* @param {string} chr The matched character to escape.
* @returns {string} Returns the escaped character.
*/
function escapeStringChar(chr) {
return '\\' + stringEscapes[chr];
}
export default escapeStringChar;