-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement #match!
for Regex
#13285
Implement #match!
for Regex
#13285
Conversation
Looks good 👍 |
I went with Found it, it was at the top 😅 |
Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specs for String#match!
would be nice.
Besides that I just have some small suggestions for doc improvements.
Co-authored-by: Johannes Müller <[email protected]>
Co-authored-by: Johannes Müller <[email protected]>
Co-authored-by: Johannes Müller <[email protected]>
Is that necessary? |
Yes, that's currently the implementation. And chances are that it's gonna stay that way more or less. But this method isn't just a simple delegation due to the assignment of |
#match!
for Regex#match!
for Regex
Co-authored-by: Sijawusz Pur Rahnama <[email protected]> Co-authored-by: Johannes Müller <[email protected]>
This PR implements
String#match!
andRegex#match!
(the former using the latter) and replaces all theRegex::MatchData
examples using#not_nil!
with#match!
. Closes #13119 and #13120.