Skip to content

[Expression Language] Number of backslashes to escape a backslash #19074

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

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

devojifr
Copy link
Contributor

To escape a backslash in a string, we must use 3 backslashes before the backslash itself.
The documentation points out we need to escape by 4 backslashes the backslash. It could be confusing, the total would 5 backslashes.

@xabbuh
Copy link
Member

xabbuh commented Oct 23, 2023

Good catch, thanks @devojifr.

@xabbuh xabbuh merged commit 8e56130 into symfony:5.4 Oct 23, 2023
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.

3 participants