From 39b030fe51f04550cd580be5f93be5a3d9deab5f Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Tue, 25 Nov 2014 20:52:14 -0800 Subject: More tweaks on date --- unittest/unittest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'unittest') diff --git a/unittest/unittest.cpp b/unittest/unittest.cpp index c74e2818..8cf9908b 100644 --- a/unittest/unittest.cpp +++ b/unittest/unittest.cpp @@ -260,8 +260,7 @@ static void testCharsetDetection(String * path) static String * tweakDateFromSummary(String * summary) { Array * components = summary->componentsSeparatedByString(MCSTR("\n")); - if (components->count() >= 4) { - String * line = (String *) components->objectAtIndex(3); + mc_foreacharray(String, line, components) { if (line->hasPrefix(MCSTR("Date:"))) { line->replaceOccurrencesOfString(MCSTR(" at "), MCSTR(" ")); } -- cgit v1.2.3