lib/runby_pace/pace.rb in runby_pace-0.6.103 vs lib/runby_pace/pace.rb in runby_pace-0.6.104
- old
+ new
@@ -14,11 +14,11 @@
end
end
def to_s(format = :long)
distance_s = @distance.to_s(format)
- leading_zero_regex = /^1 ?/
- distance_s.gsub!(leading_zero_regex, '')
+ leading_one_regex = /^1 ?/
+ distance_s.gsub!(leading_one_regex, '')
case format
when :short then "#{time} p/#{distance_s}"
when :long then "#{time} per #{distance_s}"
end
end