You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that the matching logic was a bit too strong here especially with the $? converted to $CHILD_STATUS which in this context are no where near the same thing.
The text was updated successfully, but these errors were encountered:
There's actually a subtle bug in your code as variable interpolation works in regular expression literals and for global variables like $? you can write only #$? as opposed to #{$?}. You should have also received a warning about the interpolation.
Hmm, there was a bug indeed - the cop that should have warned you about the interpolation didn't process regexp and backtick literals. This is corrected now.
I had the following line of code in ruby that removes numbers and punctuation from a string.
Which RuboCop's auto-correct feature changed it to this.
I think that the matching logic was a bit too strong here especially with the $? converted to $CHILD_STATUS which in this context are no where near the same thing.
The text was updated successfully, but these errors were encountered: