lib/runby_pace/pace.rb in runby_pace-0.6.141 vs lib/runby_pace/pace.rb in runby_pace-0.6.142
- old
+ new
@@ -85,10 +85,10 @@
def almost_equals?(other_pace, tolerance_time = '00:01')
if other_pace.is_a?(RunbyTime)
return almost_equals?(Pace.new(other_pace, @distance), tolerance_time)
end
if other_pace.is_a?(String)
- return almost_equals?(Pace.new(other_pace, @distance), tolerance_time) if other_pace.match? /^\d?\d:\d\d$/
+ return almost_equals?(Pace.new(other_pace, @distance), tolerance_time) if other_pace.match?(/^\d?\d:\d\d$/)
other_pace = Pace.parse(other_pace)
end
tolerance = RunbyTime.new(tolerance_time)
fast_end = (self - tolerance)
slow_end = (self + tolerance)