mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-112133 newline can be pasted into file rename dialog
This commit is contained in:
+1
-1
@@ -46,6 +46,6 @@ public class RenameToIgnoredDirectoryFileInputValidator implements RenameInputVa
|
||||
|
||||
@Override
|
||||
public boolean isInputValid(String newName, PsiElement element, ProcessingContext context) {
|
||||
return newName != null && newName.length() > 0 && newName.indexOf('\\') < 0 && newName.indexOf('/') < 0;
|
||||
return newName != null && newName.length() > 0 && newName.indexOf('\\') < 0 && newName.indexOf('/') < 0 && newName.indexOf('\n') < 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user