So, it should use this form of the prop check:
function(props, propName, componentName) {
if (!/matchme/.test(props[propName])) {
return new Error(
'Invalid prop `' + propName + '` supplied to' +
' `' + componentName + '`. Validation failed.'
);
}
},
Which gives us an opportunity to drop prop-types dependency completely, always emitting our custom checks. Which is gooooood.