Why do you need to use the object version instead of the literal.

`/^master$/` should work just fine, unless there's some weird shit going on.