提交 1a5d6730 编写于 作者: S Serge Rider

#5036 Disable fuzzy search


Former-commit-id: ebbb228c
上级 459b8097
......@@ -291,13 +291,13 @@ public class GotoObjectDialog extends FilteredItemsSelectionDialog {
if (item instanceof DBPNamedObject) {
String objectName = ((DBPNamedObject) item).getName();
String pattern = getPattern().replaceAll("[\\*\\%\\?]", "");
return TextUtils.fuzzyScore(objectName, pattern) > 0;
// if (!getNamePattern().matcher(objectName).matches()) {
// return false;
// }
// // Check for filters
//
// return true;
//return TextUtils.fuzzyScore(objectName, pattern) > 0;
if (!getNamePattern().matcher(objectName).matches()) {
return false;
}
// Check for filters
return true;
} else {
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册