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
…gexpLiteral`
Fixesrubocop#8843.
This PR fixes an incorrect autocorrect for `Lint/AmbiguousRegexpLiteral` when
sending method to regexp literal receiver.
It seems it fails on the regexp literal with method invocation.
Expected behavior
Auto-corrected from
assert /#{device_sn_pattern}/.match('1234')
toassert(/#{device_sn_pattern}/.match('1234'))
Actual behavior
Left parenthesis missing after
assert
. It breaks Ruby syntaxSteps to reproduce the problem
Code snippet
Run
RuboCop version
The text was updated successfully, but these errors were encountered: