Name: js-handler/node_modules/restify/node_modules/escape-regexp-component/index.js 
1:
/**
2:
 * Escape regexp special characters in `str`.
3:
 *
4:
 * @param {String} str
5:
 * @return {String}
6:
 * @api public
7:
 */
8:
 
9:
module.exports = function(str){
10:
  return String(str).replace(/([.*+?=^!:${}()|[\]\/\\])/g, '\\$1');
11:
};