Remove @ya from the valid usernames

This commit is contained in:
YouTwitFace 2019-10-28 13:07:34 -04:00 committed by GitHub
parent baacecadc5
commit f0395f24e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ TG_JOIN_RE = re.compile(
# See https://telegram.org/blog/inline-bots#how-does-it-work
VALID_USERNAME_RE = re.compile(
r'^([a-z]((?!__)[\w\d]){3,30}[a-z\d]'
r'|gif|vid|pic|bing|wiki|imdb|bold|vote|like|coub|ya)$',
r'|gif|vid|pic|bing|wiki|imdb|bold|vote|like|coub)$',
re.IGNORECASE
)