Skip to content

Add support for pattern()#6

Merged
dg merged 1 commit into
nette:masterfrom
integer:pattern
Jul 9, 2019
Merged

Add support for pattern()#6
dg merged 1 commit into
nette:masterfrom
integer:pattern

Conversation

@integer

@integer integer commented Jun 25, 2019

Copy link
Copy Markdown
Contributor
  • new feature
  • BC break? no

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

Comment thread src/Schema/Expect.php

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

Copy link
Copy Markdown
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

dg commented Jul 9, 2019

Copy link
Copy Markdown
Member

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