mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't accept semicolons in Find in Path file masks field (IDEA-133837)
This commit is contained in:
@@ -685,6 +685,11 @@ public class FindDialog extends DialogWrapper {
|
||||
if (mask.isEmpty()) {
|
||||
return new ValidationInfo(FindBundle.message("find.filter.empty.file.mask.error"), myFileFilter);
|
||||
}
|
||||
|
||||
if (mask.contains(";")) {
|
||||
return new ValidationInfo("File masks should be comma-separated", myFileFilter);
|
||||
}
|
||||
|
||||
else {
|
||||
try {
|
||||
FindInProjectUtil.createFileMaskRegExp(mask); // verify that the regexp compiles
|
||||
|
||||
Reference in New Issue
Block a user