Skip to content

Commit

Permalink
[cleaner] Skip obfuscation of substrings for hostnames properly
Browse files Browse the repository at this point in the history
Leftover from #3403 / #3496 where match_full_words_only is ignored for
hostname mapping due to own get_regex_result method.

Relevant: #3593
Resolves: #3850

Signed-off-by: Pavel Moravec <[email protected]>
  • Loading branch information
pmoravec committed Nov 22, 2024
1 parent b1a5a4a commit 1d5b4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos/cleaner/mappings/hostname_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def get_regex_result(self, item):
"""
if '.' in item:
item = item.replace('.', '(\\.|_)')
return re.compile(item, re.I)
return super().get_regex_result(item)

def set_initial_counts(self):
"""Set the initial counter for host and domain obfuscation numbers
Expand Down

0 comments on commit 1d5b4ce

Please sign in to comment.