in decontamination/decontaminate.py [0:0]
def diff_strings(string1, string2):
"""Find matching parts between two strings."""
matcher = difflib.SequenceMatcher(None, string1.lower(), string2.lower(), autojunk=False)
matching_blocks = matcher.get_matching_blocks()
matches = []
for block in matching_blocks:
start_a, start_b, length = block
if length > 5:
match = string1[start_a:start_a + length]
matches.append(match)
return matches