escape text in find scanner
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from typing import Dict, List
|
||||
from collections import defaultdict
|
||||
import discord
|
||||
import re
|
||||
|
||||
# Custom libs
|
||||
|
||||
@@ -13,6 +12,7 @@ from utils import (
|
||||
plural,
|
||||
precise,
|
||||
mention,
|
||||
escape_text,
|
||||
)
|
||||
|
||||
|
||||
@@ -64,7 +64,9 @@ class FindScanner(Scanner):
|
||||
res += [
|
||||
self.matches[match].to_string(
|
||||
matches.index(match),
|
||||
f"`{match}`",
|
||||
f'"{escape_text(match)}"'
|
||||
if not match.startswith("<:")
|
||||
else escape_text(match),
|
||||
total_usage=self.msg_count,
|
||||
ranking=False,
|
||||
transform=lambda id: f" by {mention(id)}",
|
||||
|
||||
Reference in New Issue
Block a user