Spot the bug - #157: Slug Formatter

One regex bug in this formatter.

function slugify(title) {
  return title.trim().toLowerCase().replace('/\s+/g', '-');
}

console.log(slugify('Hello World Again'));

Reply with what is broken and how you would fix it.