This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony
Fabien Potencier 270247aa74 feature #34705 [Validator] Label regex in date validator (kristofvc)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[Validator] Label regex in date validator

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | /
| License       | MIT
| Doc PR        |

This change makes sure that when extending the DateValidator you can easily change the format withouth changing anything else.
eg. you can change the pattern to
`/^(?<day>\d{2})/(?<month>\d{2})/(?<year>\d{4})$/` but the implementation still checks your date correctly.

Commits
-------

ec09f7e630 Label regex in date validator
2019-11-30 09:31:28 +01:00
..
Bridge Merge branch '5.0' 2019-11-28 15:26:02 +01:00
Bundle Merge branch '5.0' 2019-11-28 15:26:02 +01:00
Component feature #34705 [Validator] Label regex in date validator (kristofvc) 2019-11-30 09:31:28 +01:00
Contracts bug #34554 [HttpClient] Fix early cleanup of pushed HTTP/2 responses (lyrixx) 2019-11-28 15:09:27 +01:00