From 9f773625e5ae2d9b38ec5ccd6ecc6435fc891439 Mon Sep 17 00:00:00 2001 From: tadf Date: Sun, 28 Oct 2012 10:16:02 +0000 Subject: =?UTF-8?q?=09*=20ext/date/date=5Fparse.c=20(iso8601=5F{ext,bas}?= =?UTF-8?q?=5Ftime):=20should=20not=20match=20=09=20=20empty=20string.=20-?= =?UTF-8?q?=20=E3=81=93=E3=81=AE=E8=A1=8C=E4=BB=A5=E4=B8=8B=E3=81=AF?= =?UTF-8?q?=E7=84=A1=E8=A6=96=E3=81=95=E3=82=8C=E3=81=BE=E3=81=99=20--?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit M ChangeLog M ext/date/date_parse.c M test/date/test_date_parse.rb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/date/date_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/date/date_parse.c') diff --git a/ext/date/date_parse.c b/ext/date/date_parse.c index 854b0148da..7ac9e79836 100644 --- a/ext/date/date_parse.c +++ b/ext/date/date_parse.c @@ -2440,7 +2440,7 @@ static int iso8601_ext_time(VALUE str, VALUE hash) { static const char pat_source[] = - "\\A\\s*(?:(\\d{2}):(\\d{2})(?::(\\d{2})(?:[,.](\\d+))?)?" + "\\A\\s*(\\d{2}):(\\d{2})(?::(\\d{2})(?:[,.](\\d+))?" "(z|[-+]\\d{2}(:?\\d{2})?)?)?\\s*\\z"; static VALUE pat = Qnil; @@ -2452,7 +2452,7 @@ static int iso8601_bas_time(VALUE str, VALUE hash) { static const char pat_source[] = - "\\A\\s*(?:(\\d{2})(\\d{2})(?:(\\d{2})(?:[,.](\\d+))?)?" + "\\A\\s*(\\d{2})(\\d{2})(?:(\\d{2})(?:[,.](\\d+))?" "(z|[-+]\\d{2}(\\d{2})?)?)?\\s*\\z"; static VALUE pat = Qnil; -- cgit v1.2.3