From: Anthony Crumley Date: 2015-01-30T13:59:55+00:00 Subject: [ruby-core:67907] Re: Regex :blank: behavior changed with Ruby 2.2 --001a11c14f26f425da050ddf0414 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Changed the RubySpec to match current behavior of Regexp POSIX expression :blank:. https://github.com/anthonycrumley/rubyspec/commit/4f39e4411d268cafcff1c0480= af53af73a87e59e On Thu Jan 29 2015 at 7:58:52 AM Anthony Crumley wrote: > The following RubySpec is passing on 2.0 and 2.1 but failing on 2.2 and > 2.3. Is this new behavior correct or should a bug be reported? > > > https://github.com/anthonycrumley/rubyspec/blob/master/language/regexp/ch= aracter_classes_spec.rb#L145 > > 1) > Regexp with character classes matches Unicode space characters with > [[:blank:]] FAILED > Expected [] > to equal ["=E1=A0=8E"] > > /vagrant/spec/rubyspec/language/regexp/character_classes_spec.rb:145:in > `block (2 levels) in ' > /vagrant/spec/rubyspec/language/regexp/character_classes_spec.rb:4:in > `' > > --001a11c14f26f425da050ddf0414 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Changed the RubySpec to match current behavior of Regexp POSIX expression := blank:.

https://github.com/anthonycrumle= y/rubyspec/commit/4f39e4411d268cafcff1c0480af53af73a87e59e

=

On Thu Jan 29 2015 at 7:58:52 AM Antho= ny Crumley <anthony.crumley= @gmail.com> wrote:
The following R= ubySpec is passing on 2.0 and 2.1 but failing on 2.2 and 2.3.=C2=A0 Is this= new behavior correct or should a bug be reported?


1)
Regexp with characte= r classes matches Unicode space characters with [[:blank:]] FAILED
Expected []
=C2=A0to equal ["=E1=A0=8E"]
/vagrant/spec/rubyspec/language/regexp/character_classes_spec.= rb:145:in `block (2 levels) in <top (required)>'
/vagra= nt/spec/rubyspec/language/regexp/character_classes_spec.rb:4:in `<top (r= equired)>'

--001a11c14f26f425da050ddf0414--