mirror of https://github.com/mchr3k/org.intrace
Restrict multi pattern input to class names which cannot themselves include |
This commit is contained in:
parent
e24f53afad
commit
218c7946a2
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -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("\\|");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue