From: "vo.x (Vit Ondruch)" Date: 2013-03-21T17:46:56+09:00 Subject: [ruby-core:53600] [ruby-trunk - Bug #8133] Regexp macro %r{} is loosing backslash on "\}" Issue #8133 has been updated by vo.x (Vit Ondruch). nobu (Nobuyoshi Nakada) wrote: > This issue was solved with changeset r39858. Thank you. ---------------------------------------- Bug #8133: Regexp macro %r{} is loosing backslash on "\}" https://bugs.ruby-lang.org/issues/8133#change-37788 Author: jstribny (Josef Stribny) Status: Closed 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/