Skip to content

Commit

Permalink
Search for keys also if they contain dots
Browse files Browse the repository at this point in the history
  • Loading branch information
dkratzert committed Apr 17, 2024
1 parent 2fa1ed9 commit 2e63dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finalcif/gui/custom_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def search(self, searchtext: str):
for row in range(self.rowCount()):
self.setRowHidden(row, False)
return

searchtext = searchtext.replace('.', '_')
searchpattern = re.compile(f'.*{searchtext}.*', re.IGNORECASE)
searched = [x for x in self.vheaderitems if searchpattern.match(x)]

Expand Down

0 comments on commit 2e63dcb

Please sign in to comment.