Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Issue 1091553005: Fix bug in DateTime.parse. (Closed)

Created:
5 years, 8 months ago by Lasse Reichstein Nielsen
Modified:
5 years, 8 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Fix bug in DateTime.parse. Used unescaepd "." to match "." in RegExp. BUG= http://dartbug.com/22468 R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=45274

Patch Set 1 #

Patch Set 2 : Avoid using double.parse in DateTime.parse. #

Total comments: 1

Patch Set 3 : Add test that failed with the earlier double.parse strategy. #

Patch Set 4 : Shorter line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -8 lines) Patch
M sdk/lib/core/date_time.dart View 1 2 3 4 chunks +37 lines, -8 lines 0 comments Download
M tests/corelib/date_time_parse_test.dart View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
Lasse Reichstein Nielsen
5 years, 8 months ago (2015-04-20 09:22:07 UTC) #2
Søren Gjesse
lgtm https://codereview.chromium.org/1091553005/diff/20001/sdk/lib/core/date_time.dart File sdk/lib/core/date_time.dart (right): https://codereview.chromium.org/1091553005/diff/20001/sdk/lib/core/date_time.dart#newcode267 sdk/lib/core/date_time.dart:267: r'(?:[ T](\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d{1,6}))?)?)?' // The time part Long line.
5 years, 8 months ago (2015-04-20 10:18:44 UTC) #3
Lasse Reichstein Nielsen
5 years, 8 months ago (2015-04-20 10:27:32 UTC) #4
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 45274 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698