diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-01 06:47:09 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-01 06:47:09 +0300 |
commit | f19f194c9038f88a3f4ac9ee73c1e2065a739862 (patch) | |
tree | b31d35c64a0932450a18ca5fa280955ac99ee21e | |
parent | 57f36cf7e3cf0fbab648a3faca5606a552150854 (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
-rw-r--r-- | res/about/version.gmi | 1 | ||||
-rw-r--r-- | src/mimehooks.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/res/about/version.gmi b/res/about/version.gmi index 32a545eb..5553c996 100644 --- a/res/about/version.gmi +++ b/res/about/version.gmi | |||
@@ -7,6 +7,7 @@ | |||
7 | # Release notes | 7 | # Release notes |
8 | 8 | ||
9 | ## 1.7.1 | 9 | ## 1.7.1 |
10 | * Fixed failure to parse Atom feed entry timestamps that use space as the date/time separator. | ||
10 | * When adding a bookmark/folder, the bookmarks list scrolls to show the new item. | 11 | * When adding a bookmark/folder, the bookmarks list scrolls to show the new item. |
11 | * Improved reordering bookmarks in a folder: an item inside a folder can be moved to be the last item in the folder, or out of the folder depending on which side of the boundary marker the mouse cursor is. | 12 | * Improved reordering bookmarks in a folder: an item inside a folder can be moved to be the last item in the folder, or out of the folder depending on which side of the boundary marker the mouse cursor is. |
12 | 13 | ||
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(); |