Commit 1efd172b authored by Florian's avatar Florian

fixed Bug with RegEx in Filter

parent dc8c1da6
package kieker.tools.eclipse.analysis.helper;
import java.util.regex.Pattern;
import org.eclipse.jface.viewers.ColumnLabelProvider;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.Viewer;
......@@ -22,8 +24,8 @@ public class TreeFilter extends ViewerFilter {
}
public void setSearchText(String s) {
// ensure that the value can be used for matching
this.searchString = ".*" + s + ".*";
// ensure that the value can be used for matching
this.searchString = ".*" + Pattern.quote(s) + ".*";
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment