dashboard
repositories
filestore
activity
search
login
main
/
chemicalsApp
危化品全生命周期管理app
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
提交
马宇豪
2024-08-21
d972ec93c21ee8cc62fd514bfd910192eeaf48d8
[chemicalsApp.git]
/
node_modules
/
escape-string-regexp
/
index.js
1
2
3
4
5
6
7
8
9
10
11
'use strict';
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
module.exports = function (str) {
if (typeof str !== 'string') {
throw new TypeError('Expected a string');
}
return str.replace(matchOperatorsRe, '\\$&');
};