公告板
版本库
filestore
活动
搜索
登录
王立忠
/
TAI_OTS_Mail
派生自
TAI_OTS_Mail
概况
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
正式版
wzp
2021-05-13
7d694a9113118daec5be7ac224dab46a3b20f106
[~wlz/TAI_OTS_Mail.git]
/
node_modules
/
escape-regexp-component
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
/**
* Escape regexp special characters in `str`.
*
* @param {String} str
* @return {String}
* @api public
*/
module.exports = function(str){
return String(str).replace(/([.*+?=^!:${}()|[\]\/\\])/g, '\\$1');
};