Skip to content

Conversation

amatsuda
Copy link
Member

While the helper just aims to remove heading [ruby-dev:1] from the given string, it actually removes everything until the last "]" in the given string. This patch fixes it.

before:
without_list_prefix("[ruby-dev:1] Re: [ruby-list:3486] Re: eval with dynamic binding [Re: meta programming features]")
 #=> ""

after:
without_list_prefix("[ruby-dev:1] Re: [ruby-list:3486] Re: eval with dynamic binding [Re: meta programming features]")
 #=> "Re: [ruby-list:3486] Re: eval with dynamic binding [Re: meta programming features]"

before:
without_list_prefix("[ruby-dev:1] Re: [ruby-list:3486] Re: eval with dynamic binding [Re: meta programming features]")
 #=> ""

after:
without_list_prefix("[ruby-dev:1] Re: [ruby-list:3486] Re: eval with dynamic binding [Re: meta programming features]")
 #=> "Re: [ruby-list:3486] Re: eval with dynamic binding [Re: meta programming features]"
@amatsuda amatsuda merged commit a852393 into ruby:main Oct 15, 2025
1 of 2 checks passed
@amatsuda amatsuda deleted the subject_helper_regexp_fix branch October 15, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant