Skip to content

Commit

Permalink
quick hack to show 00:'s
Browse files Browse the repository at this point in the history
  • Loading branch information
jguice committed Jan 10, 2013
1 parent cf055e9 commit 01d3e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chronic_duration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def output(seconds, opts = {})
# Get rid of lead off times if they are zero
# Get rid of lead off zero
# Get rid of trailing :
str.gsub(/\b\d\b/) { |d| ("%02d" % d) }.gsub(/^(00:)+/, '').gsub(/^0/, '').gsub(/:$/, '')
str.gsub(/\b\d\b/) { |d| ("%02d" % d) }.gsub(/^0/, '').gsub(/:$/, '')
end
joiner = ''
end
Expand Down

0 comments on commit 01d3e64

Please sign in to comment.