diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-24 17:48:33 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-24 17:48:33 +0000 |
commit | b7133cc6c74b0d9fc2e12f6859c50ee6258c72ce (patch) | |
tree | a099b2568ff765521f95b57a2aa06feec596e6ec /ext | |
parent | 2115af3a46838221b49d217141067a3829f9faeb (diff) | |
download | ruby-b7133cc6c74b0d9fc2e12f6859c50ee6258c72ce.tar.gz |
* ext/date/lib/date/format.rb: fixed a bug of regex.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/date/lib/date/format.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/date/lib/date/format.rb b/ext/date/lib/date/format.rb index d2dec22f02..a541131fb5 100644 --- a/ext/date/lib/date/format.rb +++ b/ext/date/lib/date/format.rb @@ -206,7 +206,8 @@ class Date end e elsif /\A\s*(?:([-+]?(?:\d{4}|\d{2})|--)(\d{2})(\d{2})| - ([-+]?(?:\d{4}|\d{2}))?(\d{3)}|-(\d{3})| + ([-+]?(?:\d{4}|\d{2}))?(\d{3})| + -(\d{3})| (\d{4}|\d{2})?w(\d{2})(\d)) (?:t? (\d{2})(\d{2})(?:(\d{2})(?:[,.](\d+))?)? |