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

Unexpected Regexp option when NODE_DREGX #3471

Closed
ksss opened this Issue Feb 27, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@ksss
Contributor

ksss commented Feb 27, 2017

$ cat t.rb
class Regexp
  class << self
    def compile(*args)
      p args
    end
  end
end

str = "hello"

/#{str}/x
$ mruby t.rb
["hello", "\034\227\001\357\356\177"]

Is "\034\227\001\357\356\177" intentional?

I expected "x"

$ cat t.rb
class Regexp
  class << self
    def compile(*args)
      p args
    end
  end
end

/hello/x
$ mruby t.rb
["hello", "x"]

@matz matz closed this in c52bbe1 Feb 28, 2017

matz added a commit that referenced this issue Feb 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment