Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/save-and-restore/app/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ Filter PV items in list
^^^^^^^^^^^^^^^^^^^^^^^
The list of items in the snapshot view can be filtered based on the PV name. See screenshot for highlighted UI element
where user may specify a string pattern to match PV names. Non-matching items will be hidden from the list view and
**also excluded from a restore operation**.
**also excluded from a restore operation**. Filtering is case-insensitive.

To filter the view without excluding PV items from a restore operation, user needs to tick the “Preserve selection…” checkbox.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1239,11 +1239,11 @@ private void applyFilter() {
List<List<Pattern>> regexPatterns = filters.stream()
.map(item -> {
if (item.startsWith("/")) {
return List.of(Pattern.compile(item.substring(1, item.length() - 1).trim()));
return List.of(Pattern.compile(item.substring(1, item.length() - 1).trim(), Pattern.CASE_INSENSITIVE));
} else {
return Arrays.stream(item.split("&"))
.map(andItem -> andItem.replaceAll("\\*", ".*"))
.map(andItem -> Pattern.compile(andItem.trim()))
.map(andItem -> Pattern.compile(andItem.trim(), Pattern.CASE_INSENSITIVE))
.collect(Collectors.toList());
}
}).toList();
Expand Down Expand Up @@ -1653,4 +1653,4 @@ public void updateItem(AlarmSeverity alarmSeverity, boolean empty) {

}
}
}
}
Loading