log_analyser: Fix homebrew detection (#78)
This commit is contained in:
parent
97a26a76ad
commit
c33f4f29a2
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,9 @@ class LogAnalyser:
|
|||
|
||||
@staticmethod
|
||||
def is_homebrew(log_file: str) -> bool:
|
||||
return re.search("LoadApplication: Loading as Homebrew", log_file) is not None
|
||||
return (
|
||||
re.search("Load.*Application: Loading as [Hh]omebrew", log_file) is not None
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def get_main_ro_section(log_file: str) -> Optional[dict[str, str]]:
|
||||
|
|
Loading…
Reference in a new issue