docs: function parseRegExp( str ) {
  	var re = regex( str );
  	if ( re === null ) {
  		return new TypeError( 'invalid value. Unable to parse string as a regular expression. Value: `' + str + '`.' );
  	}
  	return re;
  }