Missed a place where the regex can be placed

var regex = foo ? /bar/ : /baz/