Skip to content
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

backslash character is removed from Regular Expression literal #2005

Closed
tsahara opened this issue Apr 4, 2014 · 0 comments
Closed

backslash character is removed from Regular Expression literal #2005

tsahara opened this issue Apr 4, 2014 · 0 comments

Comments

@tsahara
Copy link
Member

tsahara commented Apr 4, 2014

class Regexp
  def self.compile(re)
    puts "self.compile(#{re.inspect})"
  end
end
/\d/
% bin/mruby b.rb
self.compile("d")

Expected result is self.compile("\\d"). I found it works well before 911764e .

@matz matz closed this as completed in 5f2817b Apr 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant