summaryrefslogtreecommitdiff
path: root/src/mimehooks.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-14 10:54:57 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-14 10:55:03 +0200
commitde08efec17e1a0196fc422d720719313331940ba (patch)
tree5712bc3f646f197c134a23cbacba8cbcbab14070 /src/mimehooks.c
parent4939987a151da2ad81e6c2b42876f03c8ad09eb5 (diff)
Feeds: Leading whitespace in <updated> of Atom feeds
IssueID #433
Diffstat (limited to 'src/mimehooks.c')
-rw-r--r--src/mimehooks.c3
1 files changed, 2 insertions, 1 deletions
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 *
142 appendCStr_String(&out, cstr_Lang("feeds.atom.translated")); 142 appendCStr_String(&out, cstr_Lang("feeds.atom.translated"));
143 appendCStr_String(&out, "\n\n"); 143 appendCStr_String(&out, "\n\n");
144 iRegExp *datePattern = 144 iRegExp *datePattern =
145 iClob(new_RegExp("^([0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9])(T|\\s).*", caseSensitive_RegExpOption)); 145 iClob(new_RegExp("^\\s*([0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9])(T|\\s).*",
146 caseSensitive_RegExpOption));
146 iBeginCollect(); 147 iBeginCollect();
147 iConstForEach(PtrArray, i, &feed->children) { 148 iConstForEach(PtrArray, i, &feed->children) {
148 iEndCollect(); 149 iEndCollect();