You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
998 B

{"ast":null,"code":"'use strict';\n\nvar matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\n\nmodule.exports = function (str) {\n if (typeof str !== 'string') {\n throw new TypeError('Expected a string');\n }\n\n return str.replace(matchOperatorsRe, '\\\\$&');\n};","map":{"version":3,"sources":["C:/Users/user/Documents/myapp/node_modules/escape-string-regexp/index.js"],"names":["matchOperatorsRe","module","exports","str","TypeError","replace"],"mappings":"AAAA;;AAEA,IAAIA,gBAAgB,GAAG,qBAAvB;;AAEAC,MAAM,CAACC,OAAP,GAAiB,UAAUC,GAAV,EAAe;AAC/B,MAAI,OAAOA,GAAP,KAAe,QAAnB,EAA6B;AAC5B,UAAM,IAAIC,SAAJ,CAAc,mBAAd,CAAN;AACA;;AAED,SAAOD,GAAG,CAACE,OAAJ,CAAYL,gBAAZ,EAA8B,MAA9B,CAAP;AACA,CAND","sourcesContent":["'use strict';\n\nvar matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\n\nmodule.exports = function (str) {\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\treturn str.replace(matchOperatorsRe, '\\\\$&');\n};\n"]},"metadata":{},"sourceType":"script"}