ruby-changes:48243
From: kazu <ko1@a...>
Date: Sun, 22 Oct 2017 18:16:58 +0900 (JST)
Subject: [ruby-changes:48243] kazu:r60358 (trunk): Use `\A` and `\z` instead of `^` and `$`
kazu 2017-10-22 18:16:54 +0900 (Sun, 22 Oct 2017) New Revision: 60358 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60358 Log: Use `\A` and `\z` instead of `^` and `$` Modified files: trunk/test/test_securerandom.rb Index: test/test_securerandom.rb =================================================================== --- test/test_securerandom.rb (revision 60357) +++ test/test_securerandom.rb (revision 60358) @@ -146,7 +146,7 @@ end https://github.com/ruby/ruby/blob/trunk/test/test_securerandom.rb#L146 def test_alphanumeric 65.times do |n| an = @it.alphanumeric(n) - assert_match(/^[0-9a-zA-Z]*$/, an) + assert_match(/\A[0-9a-zA-Z]*\z/, an) assert_equal(n, an.length) end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/