spelling: because

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2023-04-04 11:13:02 -04:00
parent 54285e4bcd
commit fb74c1977e

View file

@ -232,7 +232,7 @@ def find_mentions(user, content):
if not content: if not content:
return {} return {}
# The regex has nested match groups, so the 0th entry has the full (outer) match # The regex has nested match groups, so the 0th entry has the full (outer) match
# And beacuse the strict username starts with @, the username is 1st char onward # And because the strict username starts with @, the username is 1st char onward
usernames = [m[0][1:] for m in re.findall(regex.STRICT_USERNAME, content)] usernames = [m[0][1:] for m in re.findall(regex.STRICT_USERNAME, content)]
known_users = ( known_users = (