Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/942753 )
Change subject: [bugfix] fix CosmeticChangesToolkit.cleanUpLinks ......................................................................
[bugfix] fix CosmeticChangesToolkit.cleanUpLinks
Bug: T342470 Change-Id: I29266d6e089c90f77bcdda1b7e650eacd387e986 --- M pywikibot/cosmetic_changes.py 1 file changed, 11 insertions(+), 1 deletion(-)
Approvals: Matěj Suchánek: Looks good to me, approved Xqt: Verified; Looks good to me, approved
diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py index bf3e112..29d8f64 100644 --- a/pywikibot/cosmetic_changes.py +++ b/pywikibot/cosmetic_changes.py @@ -568,7 +568,7 @@
if not titleWithSection: # just skip empty links. - return match.groups() + return match.group()
# Remove unnecessary initial and final spaces from label. # Please note that some editors prefer spaces around pipes.
pywikibot-commits@lists.wikimedia.org