module.exports = function forfeitRegExp(forfeit){
  if (forfeit.regex) return new RegExp(forfeit.regex,'i');
  else return new RegExp('\\b'+ forfeit.phrase.replace(
    /[-\/\\^$*+?.()|[\]{}]/g, '\\$&') + '\\b','i');
};

module.exports = function forfeitRegExp(forfeit){
  if (forfeit.regex) return new RegExp(forfeit.regex,'i');
  else return new RegExp('\\b' + forfeit.phrase
    .replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')
    .replace(/\s+/g,'\\W*') + '\\b','i');
};

Allow spaces to substitute for any non-word character in forfeits
Allow spaces to substitute for any non-word character in forfeits
