Skip to content

Commit

Permalink
Make bluefors file search case insensitive (#814)
Browse files Browse the repository at this point in the history
* bluefors agent not recognizing log file types based on capitalization.

---------

Co-authored-by: Daniel Lee <daniel-lee@utexas.edu>
  • Loading branch information
BrianJKoopman and Daniel Lee authored Jan 10, 2025
1 parent 9242ab2 commit 0243515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socs/agents/bluefors/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,10 @@ def identify_log(filename):
'heater': '(heaters)'}

for k, v in file_types.items():
if re.search(v, filename):
if re.search(v, filename, flags=re.I):
_type = k

m = re.search(file_types[_type], filename)
m = re.search(file_types[_type], filename, flags=re.I)
if _type == 'lakeshore':
return _type, "{}_{}".format(_type, m.group(0).lower().replace(' ', '_'))
else:
Expand Down

0 comments on commit 0243515

Please sign in to comment.