Skip to content

Commit

Permalink
Fixing string slice bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zole committed Aug 26, 2012
1 parent 9a9e538 commit e680136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/progress_bar/format/base.rb
Expand Up @@ -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
Expand Down

0 comments on commit e680136

Please sign in to comment.