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

[8.x] Fix escaping within quoted strings #36893

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

jasonmccreary
Copy link
Contributor

This is a patch for the issue noted in 36843 to allow for escaping within quoted strings.

While this handles this common case, there may be other escape sequences it does not handle. Those will likely be beyond the abilities of a single pass regular expression.

@driesvints
Copy link
Member

@jasonmccreary seems this breaks some other tests.

@driesvints driesvints changed the title Fix escaping within quoted strings [8.x] Fix escaping within quoted strings Apr 6, 2021
@jasonmccreary
Copy link
Contributor Author

jasonmccreary commented Apr 6, 2021

@driesvints looking at these failures now. A few already appear to be on 8.x though...

@jasonmccreary
Copy link
Contributor Author

All green. However, I still have my doubts about this regex overall. 😬

@taylorotwell
Copy link
Member

taylorotwell commented Apr 6, 2021

I'm very tempted to revert everything this whole GitHub issue triggered. Blade has been around for 10 years now and generally been fine and this has triggered a string of PRs and new issues 🤷

@taylorotwell
Copy link
Member

Not making anymore changes for now.

@taylorotwell taylorotwell reopened this Apr 6, 2021
@taylorotwell taylorotwell merged commit e8cdea8 into laravel:8.x Apr 6, 2021
@taylorotwell
Copy link
Member

Eh, I will merge this - but if any more issues pop up we will be reverting everything to how it was a few versions ago.

@jasonmccreary jasonmccreary deleted the fix-string-escaping branch April 6, 2021 23:13
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