Skip to content

Commit

Permalink
Support filtering of perspectives
Browse files Browse the repository at this point in the history
This enables filtering to include the perspective as part of the filter.
In essence, the change is that the filter regex now runs over the full
column name (including perspective and module) rather than just the
name.
  • Loading branch information
DavePearce committed Oct 22, 2024
1 parent 357e358 commit 5526383
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/inspect/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,11 @@ impl ModuleView {
.iter()
.enumerate()
.filter_map(|(i, (_, handle))| {
if self.regexps.is_empty()
|| self
.regexps
if self.regexps.is_empty() || {
self.regexps
.iter()
.any(|regex| regex.is_match(&handle.name))
{
.any(|regex| regex.is_match(&handle.to_string()))
} {
Some(i)
} else {
None
Expand Down

0 comments on commit 5526383

Please sign in to comment.