Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

whoops!! didnt catch this. thanks and my bad

  • Loading branch information...
commit 7de50dc8b16d413b3f1d47887c30b8b873e032d0 1 parent 0d25ff1
@jf jf authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/chronic/ordinal.rb
View
2  lib/chronic/ordinal.rb
@@ -19,7 +19,7 @@ def self.scan_for_ordinals(token)
def self.scan_for_days(token)
if token.word =~ /^(\d*)(st|nd|rd|th)$/
- unless $1.to_i > 31 && $1.to_i < 1
+ unless $1.to_i > 31 || $1.to_i < 1
return OrdinalDay.new(token.word.to_i)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.