SIGN IN SIGN UP

fix(infra): fix trailing comma regex in profile generation script (#35333)

The trailing comma regex in the profile generation script consumed the
closing `}` as part of its match, preventing nested closing braces from
getting their own trailing comma. This caused `ruff format` failures on
every generated `_profiles.py` file.

Switches to a lookahead (`(?=...)`) so the closing bracket is asserted
but not consumed, allowing each nesting level to independently receive
its trailing comma.

Fixes #35332.
M
Mason Daugherty committed
4af87fd0255cc97b5dfbd5408e5a2df5d0174de5
Parent: 6a6ef8c
Committed by GitHub <[email protected]> on 2/19/2026, 6:27:02 PM