diff options
Diffstat (limited to 'ext/date/lib/date/format.rb')
-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+))?)? |