]> jfr.im git - erebus.git/commitdiff
adjust nitterize regex
authorJohn Runyon <redacted>
Sun, 13 Aug 2023 04:28:23 +0000 (22:28 -0600)
committerJohn Runyon <redacted>
Sun, 13 Aug 2023 04:28:23 +0000 (22:28 -0600)
modules/nitterize.py

index a0978fe7db1d3da8897bcbc86251a99f7025d194..1802d625ae4ac8e0a09575aba3755b3807ff9f9e 100644 (file)
@@ -22,7 +22,7 @@ modstop = lib.modstop
 
 # module code
 import re
-re_findtwitter = re.compile(r"""https?://(?:www\.)?(?:twitter|x)\.com/([-.a-z0-9/]+)""", re.I)
+re_findtwitter = re.compile(r"""https?://(?:www\.)?(?:twitter|x)\.com/([-./_a-z0-9]+)""", re.I)
 
 @lib.hooknum("PRIVMSG")
 def privmsg_hook(bot, line):