chromium: get-commit-message.py: Improve the parsing
The latest announcement uses the following structure: "Google is aware the exploits for CVE-2021-37975 and CVE-2021-37976 exist in the wild." (https://chromereleases.googleblog.com/2021/09/stable-channel-update-for-desktop_30.html)
This commit is contained in:
parent
6ea0d68c4d
commit
d0ed7ee0b0
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ for entry in feed.entries:
|
||||||
print('chromium: TODO -> ' + version + '\n')
|
print('chromium: TODO -> ' + version + '\n')
|
||||||
print(url)
|
print(url)
|
||||||
if fixes := re.search(r'This update includes .+ security fixes\.', content).group(0):
|
if fixes := re.search(r'This update includes .+ security fixes\.', content).group(0):
|
||||||
zero_days = re.search(r'Google is aware( of reports)? that .+ in the wild\.', content)
|
zero_days = re.search(r'Google is aware( of reports)? th(e|at) .+ in the wild\.', content)
|
||||||
if zero_days:
|
if zero_days:
|
||||||
fixes += " " + zero_days.group(0)
|
fixes += " " + zero_days.group(0)
|
||||||
print('\n' + '\n'.join(textwrap.wrap(fixes, width=72)))
|
print('\n' + '\n'.join(textwrap.wrap(fixes, width=72)))
|
||||||
|
|
Loading…
Reference in a new issue