Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pattern() #6

Merged
merged 1 commit into from Jul 9, 2019
Merged

Add support for pattern() #6

merged 1 commit into from Jul 9, 2019

Conversation

@integer
Copy link
Contributor

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.

@integer integer force-pushed the integer:pattern branch from 0aabf5e to a5ddf38 Jun 25, 2019
@@ -43,6 +43,14 @@ public static function __callStatic(string $name, array $args): Type
}


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

This comment has been minimized.

Copy link
@dg

dg Jul 7, 2019

Member

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

@dg dg merged commit f1123ee into nette:master Jul 9, 2019
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.08%) to 97.205%
Details
@dg

This comment has been minimized.

Copy link
Member

dg commented Jul 9, 2019

Thanks

dg added a commit that referenced this pull request Jul 9, 2019
dg added 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
Projects
None yet
2 participants
You can’t perform that action at this time.