Regexp's source's encoding is wrong #3014
Closed
Labels
Milestone
Comments
This is fixed in 9k and 1.7 is EOL. Resolving against 9.2.0.0 so people see it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The docs for the Regexp class are a bit misleading, stating for the
source
method "Returns the original string of the pattern." However, it appears MRI updates thesource
to match the encoding fromencoding
.Here's an example:
MRI 2.2.2:
MRI 1.9.3:
JRuby 9k:
JRuby 1.7.20:
The text was updated successfully, but these errors were encountered: