aae709c40e8ae33f20029a21c2698285.json
1018 Bytes
{"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/kkwan_000/Desktop/git/2017110269/minsung/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"}