* 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
This commit is contained in:
parent
2115af3a46
commit
b7133cc6c7
@ -1,3 +1,7 @@
|
|||||||
|
Mon Apr 25 02:47:46 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
|
* ext/date/lib/date/format.rb: fixed a bug of regex.
|
||||||
|
|
||||||
Mon Apr 25 02:12:26 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
Mon Apr 25 02:12:26 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* ext/date/lib/date/format.rb: an adjustment of regex.
|
* ext/date/lib/date/format.rb: an adjustment of regex.
|
||||||
|
@ -206,7 +206,8 @@ class Date
|
|||||||
end
|
end
|
||||||
e
|
e
|
||||||
elsif /\A\s*(?:([-+]?(?:\d{4}|\d{2})|--)(\d{2})(\d{2})|
|
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))
|
(\d{4}|\d{2})?w(\d{2})(\d))
|
||||||
(?:t?
|
(?:t?
|
||||||
(\d{2})(\d{2})(?:(\d{2})(?:[,.](\d+))?)?
|
(\d{2})(\d{2})(?:(\d{2})(?:[,.](\d+))?)?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user