Skip to content

Commit 9762f33

Browse files
committed
Use normal contains instead of Regex
1 parent 9b8bd1f commit 9762f33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
LBLFILTER = Regex Filter:
1+
LBLFILTER = Filter:
22
LBLTOOLTIP = Type to filter tables...

src/main/java/com/romraider/maps/Rom.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public List<TreePath> refreshDisplayedTables(String filterText) {
155155
boolean addToTree = true;
156156
if (shouldFilter) {
157157
try {
158-
addToTree = table.getName().matches("(?i).*" + filterText + ".*");
158+
addToTree = table.getName().toLowerCase().contains(filterText.toLowerCase());
159159
} catch (PatternSyntaxException exception) {
160160
addToTree = false;
161161
}

0 commit comments

Comments
 (0)