mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] don't allow to convert empty to slashy string (IDEA-175419)
This commit is contained in:
+1
@@ -87,6 +87,7 @@ public class ConvertToRegexIntention extends Intention {
|
||||
public boolean satisfiedBy(@NotNull PsiElement element) {
|
||||
return element instanceof GrLiteral &&
|
||||
GrStringUtil.isStringLiteral((GrLiteral)element) &&
|
||||
!GrStringUtil.removeQuotes(element.getText()).isEmpty() &&
|
||||
!GrStringUtil.isSlashyString(((GrLiteral)element));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user