Restrict multi pattern input to class names which cannot themselves include |

This commit is contained in:
unknown 2012-03-17 20:48:43 +00:00
parent e24f53afad
commit 218c7946a2
4 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@ -326,7 +326,8 @@ public class IncludeExcludeWindow
String existingStr = newPattern.patternInput.getText();
String newStr = existingStr + str;
if (newStr.contains("|"))
if (newStr.contains("|") &&
!allowedStrings.matcher("|").matches())
{
String[] parts = newStr.split("\\|");
boolean allowed = true;
@ -391,7 +392,8 @@ public class IncludeExcludeWindow
{
boolean includeItem = newPattern.includeButton.getSelection();
if (newItem.contains("|"))
if (newItem.contains("|") &&
!allowedStrings.matcher("|").matches())
{
String[] parts = newItem.split("\\|");