We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fad680c commit cc1be91Copy full SHA for cc1be91
src/main/java/org/mapstruct/intellij/expression/JavaExpressionInjector.java
@@ -49,7 +49,7 @@
49
*/
50
public class JavaExpressionInjector implements MultiHostInjector {
51
52
- public static final Pattern JAVA_EXPRESSION = Pattern.compile( "\" *java\\(.*\\) *\"" );
+ public static final Pattern JAVA_EXPRESSION = Pattern.compile( "^\"\\s*java\\((.*)\\)\\s*\"$", Pattern.DOTALL );
53
54
private static final ElementPattern<PsiElement> PATTERN =
55
StandardPatterns.or(
0 commit comments