function propMatchesRenderPropPattern(text, pattern) {
  return typeof text === 'string' && minimatch(text, pattern);
}
Check whether given text matches the pattern passed in.
@param {string} text Text to validate
@param {string} pattern Pattern to match against
@returns {boolean}