summaryrefslogtreecommitdiff
path: root/ext/date/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/lib')
-rw-r--r--ext/date/lib/date/format.rb6
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