mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
regexp literal (e.g. \202) match, etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a1b57d0add
commit
69a3aaf154
15 changed files with 200 additions and 70 deletions
|
@ -73,7 +73,7 @@ module ParseDate
|
|||
elsif date.sub!(/\d\d/i, ' ')
|
||||
year = $&.to_i
|
||||
end
|
||||
if guess
|
||||
if guess and year
|
||||
if year < 100
|
||||
if year >= 69
|
||||
year += 1900
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue