var charactersWhichNeedToBeEscaped = /[.*+?^${}()|[\]\\]/g;


var escapeRegExp = function(string){
  return string.replace(charactersWhichNeedToBeEscaped, '\\$&');
}

module.exports = {
    escapeRegExp: escapeRegExp
};

var charactersWhichNeedToBeEscaped = /[.*+?^${}()|[\]\\]/g;


var escapeRegExp = function(string) {
  return string.replace(charactersWhichNeedToBeEscaped, '\\$&');
};

module.exports = {
    escapeRegExp: escapeRegExp
};

Fix style in escaper.js.