Permalink
Browse files

whoops!! didnt catch this. thanks and my bad

  • Loading branch information...
1 parent 0d25ff1 commit 7de50dc8b16d413b3f1d47887c30b8b873e032d0 @jf jf committed Apr 26, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/chronic/ordinal.rb
View
@@ -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

0 comments on commit 7de50dc

Please sign in to comment.