Update ecosystem script to account for 4 letter code (#5627)

E.g., `PERF`
This commit is contained in:
Dhruv Manilawala 2023-07-10 01:23:02 +05:30 committed by GitHub
parent ac2e374a5a
commit 9dd05424c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -366,7 +366,7 @@ async def main(
for line in diff_str.splitlines():
# Find rule change for current line or construction
# + <rule>/<path>:<line>:<column>: <rule_code> <message>
matches = re.search(r": ([A-Z]{1,3}[0-9]{3,4})", line)
matches = re.search(r": ([A-Z]{1,4}[0-9]{3,4})", line)
if matches is None:
# Handle case where there are no regex matches e.g.