From de08efec17e1a0196fc422d720719313331940ba Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 14 Jan 2022 10:54:57 +0200 Subject: Feeds: Leading whitespace in of Atom feeds IssueID #433 --- src/mimehooks.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mimehooks.c b/src/mimehooks.c index c097bd1f..eb379106 100644 --- a/src/mimehooks.c +++ b/src/mimehooks.c @@ -142,7 +142,8 @@ static iBlock *translateAtomXmlToGeminiFeed_(const iString *mime, const iBlock * appendCStr_String(&out, cstr_Lang("feeds.atom.translated")); appendCStr_String(&out, "\n\n"); iRegExp *datePattern = - iClob(new_RegExp("^([0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9])(T|\\s).*", caseSensitive_RegExpOption)); + iClob(new_RegExp("^\\s*([0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9])(T|\\s).*", + caseSensitive_RegExpOption)); iBeginCollect(); iConstForEach(PtrArray, i, &feed->children) { iEndCollect(); -- cgit v1.2.3