summaryrefslogtreecommitdiff
path: root/lib/scanf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/scanf.rb')
-rw-r--r--lib/scanf.rb2
1 files changed, 1 insertions, 1 deletions
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)