mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/base64.rb (Base64::b64encode): should not specify /o option
for regular expression. [ruby-dev:31221] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6c12b69fda
commit
bc8724d05f
3 changed files with 9 additions and 4 deletions
|
@ -110,7 +110,7 @@ module Base64
|
|||
# UnVieQ==
|
||||
|
||||
def b64encode(bin, len = 60)
|
||||
encode64(bin).scan(/.{1,#{len}}/o) do
|
||||
encode64(bin).scan(/.{1,#{len}}/) do
|
||||
print $&, "\n"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue