diff --git a/sopel/modules/xkcd.py b/sopel/modules/xkcd.py index c4b23b6dfa..38ac6baee2 100644 --- a/sopel/modules/xkcd.py +++ b/sopel/modules/xkcd.py @@ -48,7 +48,7 @@ def web_search(query): url = bing_search(query + sites_query) if not url: return None - match = re.match(r'(?:https?://)?xkcd.com/(\d+)/?', url) + match = re.match(r'(?:https?://)?(?:m\.)?xkcd\.com/(\d+)/?', url) if match: return match.group(1)