Ruby: Added missing regex interpolation#2841
Conversation
There was a problem hiding this comment.
Thank You @RunDevelopment for fixing it quickly. PR looks good to me for interpolation fix.
I found below of scenarios while testing it on my local 👇
1 - When regex present with interpolation and in-line comment on same line it treats interpolation as comment for regex with /.../ works fine for %r[...].
2 - Regex Encoding options are supported, I can raise separate ticket for this.
Regular expressions are assumed to use the source encoding. This can be overridden with one of the following modifiers.
/pat/u - UTF-8
/pat/e - EUC-JP
/pat/s - Windows-31J
/pat/n - ASCII-8BIT
Can we fix Issue 1 in this PR? or should I raise separate issue for the same?
|
Thank you for the comment @sampatbadhe!
|
|
@RunDevelopment recent changes looks good to me 👌 |



This fixes #2839.