mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/scanf.rb: fixed bug involving matching literal '['
* test/scanf/test_scanf.rb: added test for scanf.rb fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6378201f8b
commit
9cab7d15ca
3 changed files with 14 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ module Scanf
|
|||
end
|
||||
|
||||
def count_space?
|
||||
/(?:\A|\S)%\*?\d*c|\[/.match(@spec_string)
|
||||
/(?:\A|\S)%\*?\d*c|%\d*\[/.match(@spec_string)
|
||||
end
|
||||
|
||||
def initialize(str)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue