escapeRegExp: function()

in lib/utils.js [27:32]


  escapeRegExp: function (input) {
    if (typeof input === 'undefined') {
      return '';
    }
    return input.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
  },