Add files
This commit is contained in:
commit
bb80829159
18195 changed files with 2122994 additions and 0 deletions
19
509bba0_unpacked_with_node_modules/~/escape-string-regexp/index.js
generated
Executable file
19
509bba0_unpacked_with_node_modules/~/escape-string-regexp/index.js
generated
Executable file
|
@ -0,0 +1,19 @@
|
|||
'use strict';
|
||||
|
||||
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
||||
|
||||
module.exports = function (str) {
|
||||
if (typeof str !== 'string') {
|
||||
throw new TypeError('Expected a string');
|
||||
}
|
||||
|
||||
return str.replace(matchOperatorsRe, '\\$&');
|
||||
};
|
||||
|
||||
|
||||
|
||||
//////////////////
|
||||
// WEBPACK FOOTER
|
||||
// ./~/escape-string-regexp/index.js
|
||||
// module id = 2071
|
||||
// module chunks = 4
|
Loading…
Add table
Add a link
Reference in a new issue