diff options
| author | 2025-12-04 23:09:56 +0100 | |
|---|---|---|
| committer | 2025-12-04 23:09:56 +0100 | |
| commit | d23fa00d3ad2cb226ad387bc892a2958e1ad509b (patch) | |
| tree | 5d25f07ab97e7371c3c00c08da5e63f8430a0656 | |
| parent | wikibot: add JAA's wikibot (diff) | |
| signature | ||
wb(wbmexclusions): fix python SyntaxWarning for regex
Fixed SyntaxWarning: invalid escape sequence '\.'
| -rw-r--r-- | wikibot/wbmexclusions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wikibot/wbmexclusions.py b/wikibot/wbmexclusions.py index c30c5cf..a53ef73 100644 --- a/wikibot/wbmexclusions.py +++ b/wikibot/wbmexclusions.py @@ -4,7 +4,7 @@ import re import os -extractionPattern = re.compile('[^:/]+://(?:www\.)?([^/]+)') +extractionPattern = re.compile('[^:/]+://(?:www\\.)?([^/]+)') countMarkBegin = '<!-- atwikibot:urlCount -->' countMarkEnd = '<!-- /atwikibot:urlCount -->' |
