Updated the regex to match the robot emoji followed by "Claude Code" on the last line, regardless of formatting. Also pulled the regex into a named variable with a comment to clarify intent. This catches variations like "Generated with Claude Code" without square brackets.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>