From 9cab7d15ca791d0b14db03217485a7c756097a71 Mon Sep 17 00:00:00 2001 From: dblack Date: Wed, 3 Sep 2008 12:54:13 +0000 Subject: * 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 --- lib/scanf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/scanf.rb') diff --git a/lib/scanf.rb b/lib/scanf.rb index 564ce11fee..cbb98b6f9f 100644 --- a/lib/scanf.rb +++ b/lib/scanf.rb @@ -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) -- cgit v1.2.3