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

Issue #5307: HTML regexp when match is false #5382

Merged
merged 1 commit into from
Aug 30, 2012

Conversation

rdohms
Copy link
Contributor

@rdohms rdohms commented Aug 30, 2012

When match is false the html5 validation regexp should be either inverted or not added.
Since we are in RC added a fix where this is not added, but marked a @todo so that this
can be revisited and we try to inverse the regexp instead.

Discussed in #5307.

@travisbot
Copy link

This pull request passes (merged 25b02250 into 548db6d).

@@ -69,6 +74,11 @@ public function getHtmlPattern()
*/
private function getNonDelimitedPattern()
{
// If match = false, pattern should not be added to HTML5 validation
if ( ! $this->match) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please remove the spaces around the "!"? (see coding standards)

@webmozart
Copy link
Contributor

👍 once the CS issue is fixed.

@rdohms
Copy link
Contributor Author

rdohms commented Aug 30, 2012

Could swear that was the CS in PSR-1 or 2, anyway, fixed.

@fabpot
Copy link
Member

fabpot commented Aug 30, 2012

Can you squash your commits before I merge? Thanks.

When match is false the html5 validation regexp should be either inverted or not added.
Since we are in RC added a fix where this is not added, but marked a @todo so that this
can be revisited and we try to inverse the regexp instead.
@rdohms
Copy link
Contributor Author

rdohms commented Aug 30, 2012

@fabpot done.

@travisbot
Copy link

This pull request passes (merged 7bc78caa into 548db6d).

fabpot added a commit that referenced this pull request Aug 30, 2012
Commits
-------

7503ec9 Issue #5307: HTML regexp when match is false

Discussion
----------

Issue #5307: HTML regexp when match is false

When match is false the html5 validation regexp should be either inverted or not added.
Since we are in RC added a fix where this is not added, but marked a @todo so that this
can be revisited and we try to inverse the regexp instead.

Discussed in #5307.

---------------------------------------------------------------------------

by bschussek at 2012-08-30T08:40:06Z

:+1: once the CS issue is fixed.

---------------------------------------------------------------------------

by rdohms at 2012-08-30T09:23:57Z

Could swear that was the CS in PSR-1 or 2, anyway, fixed.

---------------------------------------------------------------------------

by fabpot at 2012-08-30T09:26:07Z

Can you squash your commits before I merge? Thanks.

---------------------------------------------------------------------------

by rdohms at 2012-08-30T09:54:26Z

@fabpot done.
@fabpot fabpot merged commit 7503ec9 into symfony:master Aug 30, 2012
@travisbot
Copy link

This pull request passes (merged 7503ec9 into 03f34a9).

Nyholm added a commit that referenced this pull request Apr 1, 2021
…attern() phpDoc (guilliamxavier)

This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] Delete obsolete statement in Regex::getHtmlPattern() phpDoc

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | #12235
| License       | MIT
| Doc PR        |

The original issue was #5307 (`match=false` not handled in `getHtmlPattern()`).
Then #5382 patched it to return null (rather than an incorrect result) and inserted a statement and a "todo" in the phpDoc.
Later (but still years ago) #12235 properly implemented pattern inversion, but only removed the "todo"; this PR removes the statement.

Commits
-------

3bdf8d7 [Validator] Delete obsolete statement in Regex::getHtmlPattern() phpDoc
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.

4 participants