Merge pull request #130364 from primeos/chromium-update

chromium: get-commit-message.py: Improve the parsing

authored by Michael Weiss and committed by GitHub c6c4a3d4 e92f6aa3

+2 -2
+2 -2
pkgs/applications/networking/browsers/chromium/get-commit-message.py
··· 19 19 continue 20 20 url = requests.get(entry.link).url.split('?')[0] 21 21 content = entry.content[0].value 22 + content = html_tags.sub('', content) # Remove any HTML tags 22 23 if re.search(r'Linux', content) is None: 23 24 continue 24 25 #print(url) # For debugging purposes 25 26 version = re.search(r'\d+(\.\d+){3}', content).group(0) 26 27 print('chromium: TODO -> ' + version) 27 28 print('\n' + url) 28 - if fixes := re.search(r'This update includes .+ security fixes\.', content): 29 - fixes = html_tags.sub('', fixes.group(0)) 29 + if fixes := re.search(r'This update includes .+ security fixes\.', content).group(0): 30 30 zero_days = re.search(r'Google is aware( of reports)? that .+ in the wild\.', content) 31 31 if zero_days: 32 32 fixes += " " + zero_days.group(0)