8000 minor #4215 Fixed code highlighting (WouterJ) · symfony/symfony-docs@8591b87 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8591b87

Browse files
committed
minor #4215 Fixed code highlighting (WouterJ)
This PR was merged into the 2.3 branch. Discussion ---------- Fixed code highlighting | Q | A | --- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | - > Double quoted strings are the only scalar style capable of expressing arbitrary strings, by using “\” escape sequences. > - http://yaml.org/spec/1.1/#id904245 `\w` and `\d` are invalid escape sequences in Yaml, causing the Yaml highlighter to fail. Commits ------- f4b5dc6 Fixed code highlighting
2 parents f276e34 + f4b5dc6 commit 8591b87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/constraints/Regex.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ characters at the beginning of your string:
3232
Acme\BlogBundle\Entity\Author:
3333
properties:
3434
description:
35-
- Regex: "/^\w+/"
35+
- Regex: '/^\w+/'
3636
3737
.. code-block:: php-annotations
3838
@@ -98,7 +98,7 @@ message:
9898
properties:
9999
firstName:
100100
- Regex:
101-
pattern: "/\d/"
101+
pattern: '/\d/'
102102
match: false
103103
message: Your name cannot contain a number
104104

0 commit comments

Comments
 (0)
0