8000 #2837 Add support for text blocks in expressions by filiphr · Pull Request #2872 · mapstruct/mapstruct · GitHub
[go: up one dir, main page]

Skip to content

#2837 Add support for text blocks in expressions#2872

Merged
filiphr merged 1 commit intomapstruct:masterfrom
filiphr:expression-text-block-support
Jun 18, 2022
Merged

#2837 Add support for text blocks in expressions#2872
filiphr merged 1 commit intomapstruct:masterfrom
filiphr:expression-text-block-support

Conversation

@filiphr
Copy link
Member
@filiphr filiphr commented Jun 5, 2022

This PR adds support for Java Text Blocks by changing the pattern we use to match an expression to use the DOTALL flag (dot matches new lines) and also adding extra whitespaces before java and after the closing of the expression. The extra whitespaces are there because a user might make a mistake when typing the expression and have leading whitespace in the string. We don't want to be too strict there.

Fixes #2837

@filiphr filiphr merged commit fa80092 into mapstruct:master Jun 18, 2022
@filiphr filiphr deleted the expression-text-block-support branch June 18, 2022 10:32
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.

Add support for Java Text Blocks

2 participants

0