diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-24 17:13:17 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-24 17:13:17 +0000 |
commit | 2115af3a46838221b49d217141067a3829f9faeb (patch) | |
tree | d87651b3b4b08e57ccc79fc988a8c410c193d90c /ext | |
parent | 60c7967e12dfb54fe817616ec117da80debd4782 (diff) | |
download | ruby-2115af3a46838221b49d217141067a3829f9faeb.tar.gz |
* ext/date/lib/date/format.rb: an adjustment of regex.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/date/lib/date/format.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/date/lib/date/format.rb b/ext/date/lib/date/format.rb index eb69cf1877..d2dec22f02 100644 --- a/ext/date/lib/date/format.rb +++ b/ext/date/lib/date/format.rb @@ -146,9 +146,9 @@ class Date def self._iso8601(str) # :nodoc: if /\A\s*(?:([-+]?\d{2,}|-)-(\d{2})-(\d{2})| - ([-+]?\d{2,})?-(\d{3})| - (\d{2}|\d{4})?-w(\d{2})-(\d)| - -w-(\d)) + ([-+]?\d{2,})?-(\d{3})| + (\d{4}|\d{2})?-w(\d{2})-(\d)| + -w-(\d)) (?:t (\d{2}):(\d{2})(?::(\d{2})(?:[,.](\d+))?)? (z|[-+]\d{2}(?::?\d{2})?)?)?\s*\z/ix =~ str |