diff options
| author | 2025-12-25 11:14:47 +0000 | |
|---|---|---|
| committer | 2025-12-25 11:14:47 +0000 | |
| commit | 7f89d071aa4347afa8683cb339059afea2d7e060 (patch) | |
| tree | 221f2f600e70c8da8f7c9d2fa38dd0aafeffa0ff /wikibot | |
| parent | pkgs(little-things): apparently dir-to-ia tries to get it's own version (diff) | |
| signature | ||
wikibot(discourse): fix regex pattern thingy
invalid characters of course if i forget to backslash backslashes twice
Diffstat (limited to 'wikibot')
| -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 fa19cad..4ca62f0 100644 --- a/wikibot/discourse.py +++ b/wikibot/discourse.py @@ -10,7 +10,7 @@ import re # sort | uniq -c | sort -hr # and then manually curated the subdomain part of the regex extractionPattern = re.compile('(?:^\\* \\[?ht)[^:/]+://(\\S+)') -text_version = re.compile('\[(?:[^\\s:/]+://\\S+) (.*)\]') +text_version = re.compile('\\[(?:[^\\s:/]+://\\S+) (.*)\\]') def get_cleaned_url(line): # Extract the forum name from the first [] on a line, else domain from the first URL appearing on a line; returns None if no URL is found |
