diff options
| author | 2025-12-30 17:05:58 +0000 | |
|---|---|---|
| committer | 2025-12-30 17:05:58 +0000 | |
| commit | e6f340e17a660fe407ee6806fe6b6486e2bd1324 (patch) | |
| tree | 00fdbc2b986730bf6f8857719edd8a6d17ca8121 | |
| parent | wikibot(discourse): try to sort by dates for [[Discourse/archived]] (diff) | |
| signature | ||
wikibot(discourse): order urls correctly
| -rw-r--r-- | wikibot/discourse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wikibot/discourse.py b/wikibot/discourse.py index 3d11ad4..de875c8 100644 --- a/wikibot/discourse.py +++ b/wikibot/discourse.py @@ -4,7 +4,7 @@ import re extractionPattern = re.compile('(?:^\\* \\[?ht)[^:/]+://(\\S+)') text_version = re.compile('\\[(?:[^\\s:/]+://\\S+) (.*)\\]') -time_version = re.compile('\\* (.*) \\({{ArchiveBot job\\|\\S+}}, started ([0-9-]*)(?:[,;].+)?\\)') +time_version = re.compile('\\* (.*) \\({{ArchiveBot job\\|\\S+ *}}\\)?, started ([0-9-]*)(?:[,;].+)?\\)') def get_cleaned_url(line): TimeMatch = time_version.search(line) |
