From: "jstribny (Josef Stribny)" Date: 2013-03-21T00:22:24+09:00 Subject: [ruby-core:53578] [ruby-trunk - Bug #8133][Open] Regexp macro %r{} is loosing backslash on "\}" Issue #8133 has been reported by jstribny (Josef Stribny). ---------------------------------------- Bug #8133: Regexp macro %r{} is loosing backslash on "\}" https://bugs.ruby-lang.org/issues/8133 Author: jstribny (Josef Stribny) Status: Open Priority: Normal Assignee: Category: core Target version: current: 2.1.0 ruby -v: 2.0.0 Hello, Ruby 2.0.0 is loosing the backslash when used on "\}" string (exact match). How to reproduce in irb: 2.0.0-p0 :003 > %r{\}} => /}/ 2.0.0-p0 :004 > %r{\{} => /\{/ Compared to: 1.9.3p392 :001 > %r{\{} => /\{/ 1.9.3p392 :002 > %r{\}} => /\}/ This shouldn't probably happen. -- http://bugs.ruby-lang.org/