diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-20 21:12:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-20 21:12:58 +0000 |
commit | b9e3f3c129b39bd99b1738dbed4273985c464074 (patch) | |
tree | b8ffc3da245503ebbaf8e999c726ecad3e6734b8 /lib/scanf.rb | |
parent | e1ebab4ed015c1c479f98595eecfc8f1bebaba6b (diff) | |
download | bundler-b9e3f3c129b39bd99b1738dbed4273985c464074.tar.gz |
* lib/scanf.rb (Scanf::FormatSpecifier#initialize): %i should accept
single digit decimal. [ruby-core:18355]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/scanf.rb')
-rw-r--r-- | lib/scanf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scanf.rb b/lib/scanf.rb index 8d06bf39c4..564ce11fee 100644 --- a/lib/scanf.rb +++ b/lib/scanf.rb @@ -357,7 +357,7 @@ module Scanf # %i when /%\*?i/ - [ "([-+]?(?:(?:0[0-7]+)|(?:0[Xx]#{h}+)|(?:[1-9]\\d+)))", :extract_integer ] + [ "([-+]?(?:(?:0[0-7]+)|(?:0[Xx]#{h}+)|(?:[1-9]\\d*)))", :extract_integer ] # %5i when /%\*?(\d+)i/ |