Skip to content

Commit 64c1ce5

Browse files
committed
Update wiki regex (require two backticks)
1 parent aa01113 commit 64c1ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wiki/wiki.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ async def on_message_without_command(self, ctx):
253253
if ctx.channel.id not in channels:
254254
return
255255

256-
ticks = re.findall(r'\`(.*?)\`', ctx.content)
256+
ticks = re.findall(r'\`\`([a-zA-Z]{2,}?)\`\`', ctx.content)
257257

258258
while("" in ticks):
259259
ticks.remove("")

0 commit comments

Comments
 (0)