summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-24 17:48:33 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-24 17:48:33 +0000
commitb7133cc6c74b0d9fc2e12f6859c50ee6258c72ce (patch)
treea099b2568ff765521f95b57a2aa06feec596e6ec /ext/date
parent2115af3a46838221b49d217141067a3829f9faeb (diff)
* 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/date')
-rw-r--r--ext/date/lib/date/format.rb3
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+))?)?