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 (cherry picked from commit c02ac479ba55d802d6232cdb743f5228984e2ff9)
This commit is contained in:
parent
ede696c79d
commit
06924553df
@ -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…
x
Reference in New Issue
Block a user