- if re.search("copyright", content, re.IGNORECASE):
- logger.info('Contains needed Licence string: %s', patch_file)
- elif re.search("spdx", content, re.IGNORECASE):
+ patterns = ['copyright', 'spdx',
+ 'http://creativecommons.org/licenses/by/4.0']
+ if any(i in content.lower() for i in patterns):