chromium: get-commit-message.py: Support a new 0-day sentence
The current stable release announcement [0] uses a slightly different message/structure. [0]: https://chromereleases.googleblog.com/2021/06/stable-channel-update-for-desktop.html
This commit is contained in:
parent
6de7be454a
commit
c02ac479ba
|
@ -27,7 +27,7 @@ for entry in feed.entries:
|
||||||
print('\n' + url)
|
print('\n' + url)
|
||||||
if fixes := re.search(r'This update includes .+ security fixes\.', content):
|
if fixes := re.search(r'This update includes .+ security fixes\.', content):
|
||||||
fixes = html_tags.sub('', fixes.group(0))
|
fixes = html_tags.sub('', fixes.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)? that .+ 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