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 fixes the check.

Test plan: make travis pass.