Skip to content

Conversation

@integer
Copy link
Contributor

@integer integer commented Jun 25, 2019

  • new feature
  • BC break? no

This PR adds support for pattern() method for validating schema with power of regular expressions.


public static function pattern(string $pattern): Type
{
$type = new Type('pattern');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be Type('string'), or isn't?

@dg dg merged commit f1123ee into nette:master Jul 9, 2019
@dg
Copy link
Member

dg commented Jul 9, 2019

Thanks

dg pushed a commit that referenced this pull request Jul 9, 2019
dg pushed a commit that referenced this pull request Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants