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

Fix: preserve nested escaped placeholders during resolution #34720

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iifawzi
Copy link

@iifawzi iifawzi commented Apr 5, 2025

Hello, this PR aims to resolve spring-framework#34326.

Added a new utility method resolveNestedPlaceholdersWithEscapePreservation, to preserve escaped placeholders using a regex pattern \\(\$\{[^}]+\}), which then masks it and then restores the placeholder after the call to resolveNestedPlaceholders

This is my first contribution to the project, so I might be missing something, let me know if you think I can help in doing it in any different way.

Closes-34326

Signed-off-by: Fawzi Essam <iifawzie@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Apr 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged or decided on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Escaped placeholders are evaluated if the PropertySource has placeholder support
2 participants