text: var toString = require("@nathanfaucett/to_string");
  
  
  var reRegExpChars = /[.*+?\^${}()|\[\]\/\\]/g,
      reHasRegExpChars = new RegExp(reRegExpChars.source);
  
  
  module.exports = escapeRegExp;
  
  
  function escapeRegExp(string) {
      string = toString(string);
      return (
          (string && reHasRegExpChars.test(string)) ?
          string.replace(reRegExpChars, "\\$&") :
          string
      );
  }
  