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

[Routing] Add doc about unicode requirements#6890

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
xabbuh merged 1 commit intosymfony:masterfromnicolas-grekas:route-unicode
Sep 21, 2016

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedAug 19, 2016
edited
Loading

mickaelandrieu reacted with heart emoji
@nicolas-grekasnicolas-grekasforce-pushed theroute-unicode branch 2 times, most recently fromb2154f8 toc53742fCompareAugust 19, 2016 09:16
@nicolas-grekasnicolas-grekas changed the titleAdd doc about unicode requirements[Routing] Add doc about unicode requirementsAug 19, 2016
of just a single byte. Unicode matching is also automatically enabled
whenever the route or a requirement contains a non-ASCII UTF-8 character or
a `PCRE Unicode property`_ (``\p{xx}``, ``\P{xx}`` or ``\X``).

Copy link
Member

Choose a reason for hiding this comment

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

I think we need an example with the* prefix to make things real clear.

@nicolas-grekasnicolas-grekasforce-pushed theroute-unicode branch 3 times, most recently fromd2af1c2 toe129c00CompareAugust 25, 2016 09:35
fabpot added a commit to symfony/symfony that referenced this pull requestAug 25, 2016
…s (nicolas-grekas)This PR was merged into the 3.2-dev branch.Discussion----------[Routing] Add seamless support for unicode requirements| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets |#3629,#5236,#19562| License       | MIT| Doc PR        |symfony/symfony-docs#6890This PR adds unicode support to route matching and generation by automatically adding the `u` modifier to regexps that use either unicode characters or unicode enabled character classes (e.g. `\p...` `\x{...}` `\X`).As a side note, if one wants to match a single unicode character (vs a single byte), one should use `\PM` or `\X` instead of `.` *or* set the `unicode` parameter to true.Commits-------a829d34 [Routing] Add seamless support for unicode requirements
symfony-splitter pushed a commit to symfony/routing that referenced this pull requestAug 25, 2016
…s (nicolas-grekas)This PR was merged into the 3.2-dev branch.Discussion----------[Routing] Add seamless support for unicode requirements| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | #3629, #5236, #19562| License       | MIT| Doc PR        |symfony/symfony-docs#6890This PR adds unicode support to route matching and generation by automatically adding the `u` modifier to regexps that use either unicode characters or unicode enabled character classes (e.g. `\p...` `\x{...}` `\X`).As a side note, if one wants to match a single unicode character (vs a single byte), one should use `\PM` or `\X` instead of `.` *or* set the `unicode` parameter to true.Commits-------a829d34 [Routing] Add seamless support for unicode requirements
@javiereguiluz
Copy link
Member

👍

Status: reviewed


A fantastic feature and perfectly documented! Thanks@nicolas-grekas

(Note: there are some minor formatting issues in this commit: in RST, code literals must be wrapped with double backticks instead of Markdown's single backticks).

mickaelandrieu reacted with thumbs up emoji

@xabbuh
Copy link
Member

Thank you@nicolas-grekas.

@xabbuhxabbuh merged commit75ed392 intosymfony:masterSep 21, 2016
xabbuh added a commit that referenced this pull requestSep 21, 2016
…rekas)This PR was merged into the master branch.Discussion----------[Routing] Add doc about unicode requirementsRef.symfony/symfony#19604Commits-------75ed392 Add doc about unicode requirements
@nicolas-grekasnicolas-grekas deleted the route-unicode branchSeptember 23, 2016 18:53
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@nicolas-grekas@javiereguiluz@xabbuh@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp