diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-20 03:22:56 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-20 03:22:56 +0000 |
commit | d7525abda747f3c7fa7765f0ed6f25ad968bf5cd (patch) | |
tree | 978fec2c98e119e1431fb9b905e652433f1f904d /lib | |
parent | c88228636a3377830dd95df705877b9ffaa78f8d (diff) | |
download | ruby-d7525abda747f3c7fa7765f0ed6f25ad968bf5cd.tar.gz ruby-d7525abda747f3c7fa7765f0ed6f25ad968bf5cd.tar.xz ruby-d7525abda747f3c7fa7765f0ed6f25ad968bf5cd.zip |
merge revision(s) 18744:
* lib/scanf.rb (Scanf::FormatSpecifier#initialize): %i should accept
single digit decimal. [ruby-core:18355]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@21680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-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 2972bf9d6..a54485661 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/ |