don't accept semicolons in Find in Path file masks field (IDEA-133837)

This commit is contained in:
peter
2015-01-05 16:09:06 +01:00
parent a02311e450
commit 2a5be6d0ff
@@ -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