old_contents: module.exports = function (string) {
    return string.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&")
  }
  
new_contents: module.exports = function (x) {
    return x.toString().replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&")
  }
  
subject: Convert to string automatically