Do not consume whitespace/delimiters after date in DateParse()

Set the end iterator to the end of the actually parsed date, instead
of consuming any ultimately unparsed whitespace/delimiters possibly
following the date.
This commit is contained in:
Lauri Nurmi
2022-03-19 22:56:08 +01:00
committed by Vadim Zeitlin
parent 945738042d
commit 088e643d37
2 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -1253,7 +1253,7 @@ void DateTimeTestCase::TestDateParse()
// valid, but followed by something
{ "Dec 31 1979 was the end of 70s",
{ 31, wxDateTime::Dec, 1979 }, true, "was the end of 70s" },
{ 31, wxDateTime::Dec, 1979 }, true, " was the end of 70s" },
// some invalid ones too
{ "29 Feb 2006" },