Missed a place where the regex can be placed

var regex = foo ? /bar/ : /baz/
update
Merge pull request #137 from eldenchen/patch-1

Missed a place where the regex can be placed