From e6801368bdf5d39f0311152593152650f4a42dad Mon Sep 17 00:00:00 2001 From: Alex Michaud Date: Sat, 25 Aug 2012 17:13:36 -0700 Subject: [PATCH] Fixing string slice bug --- lib/progress_bar/format/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/progress_bar/format/base.rb b/lib/progress_bar/format/base.rb index 2d6373f3..7c476c0b 100644 --- a/lib/progress_bar/format/base.rb +++ b/lib/progress_bar/format/base.rb @@ -20,7 +20,7 @@ def parse(format_string) molecules = [] format_string.scan(/%[a-zA-Z]/) do |match| - molecules << Molecule.new(match[1]) + molecules << Molecule.new(match[1,1]) end molecules