Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Validator] add html pattern option to regex constraint #2833

Closed
Labels
actionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)
Milestone
@1ed

Description

@1ed

Hi!

A newhtmlPattern option was added (by this commitsymfony/symfony@6f9eda9 so it exists since 2.1) to the Regex constraint and it's not in the docs.

And there is a pitfall (thats why this option exists) that I think the doc should mention... php's PCRE patterns are not fully compatible with thepattern HTML5 attribute e.g. JavaScript does not support \A and \Z anchors so you're stuck with using the caret (^) and dollar ($) for this purpose.

And one more thing from this commitsymfony/symfony@7503ec9

Pattern is also ignored if match=false since the pattern should then be reversed before application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp