diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-20 06:08:52 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-20 06:08:52 +0000 |
commit | 79a5d02e194a5eee47ce2456019cfe2d31565969 (patch) | |
tree | 01dd9b3b9f5e258211ccc691a327f368bcd0efb3 /lib | |
parent | dc9d02aa1d984a0d3a5e768dd0ec8940e7474c8c (diff) |
2000-06-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/parsedate.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parsedate.rb b/lib/parsedate.rb index 35fffcfe98..dc659200d6 100644 --- a/lib/parsedate.rb +++ b/lib/parsedate.rb @@ -67,9 +67,9 @@ module ParseDate mon = MONTHS[$2.downcase] year = $3.to_i end - if date.sub!(/\d{4}/i, ' ') + if !year && date.sub!(/\d{4}/i, ' ') year = $&.to_i - elsif date.sub!(/\d\d/i, ' ') + elsif !year && date.sub!(/\d\d/i, ' ') year = $&.to_i end if guess and year |