Fix PropType for travis

Some browsers (including travis's phantom) recognize the type of a regexp as
a function (callable) rather than an object.
This is solely for making travis pass.

Test plan: make travis pass.