summaryrefslogtreecommitdiff
path: root/wikibot
diff options
context:
space:
mode:
authorGravatar klea2025-12-25 11:14:47 +0000
committerGravatar klea2025-12-25 11:14:47 +0000
commit7f89d071aa4347afa8683cb339059afea2d7e060 (patch)
tree221f2f600e70c8da8f7c9d2fa38dd0aafeffa0ff /wikibot
parentpkgs(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.py2
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