summaryrefslogtreecommitdiff
path: root/src/mimehooks.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-01 06:47:09 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-01 06:47:09 +0300
commitf19f194c9038f88a3f4ac9ee73c1e2065a739862 (patch)
treeb31d35c64a0932450a18ca5fa280955ac99ee21e /src/mimehooks.c
parent57f36cf7e3cf0fbab648a3faca5606a552150854 (diff)
Fixed failure to parse Atom feed entry time
Atom XML feed timestamps may have a T or a space as the separator between the date and the time. IssueID #348
Diffstat (limited to 'src/mimehooks.c')
-rw-r--r--src/mimehooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mimehooks.c b/src/mimehooks.c
index ce712c2d..c097bd1f 100644
--- a/src/mimehooks.c
+++ b/src/mimehooks.c
@@ -142,7 +142,7 @@ 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.*", caseSensitive_RegExpOption)); 145 iClob(new_RegExp("^([0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9])(T|\\s).*", caseSensitive_RegExpOption));
146 iBeginCollect(); 146 iBeginCollect();
147 iConstForEach(PtrArray, i, &feed->children) { 147 iConstForEach(PtrArray, i, &feed->children) {
148 iEndCollect(); 148 iEndCollect();