Skip to content

Commit

Permalink
Removed "/" that was not needed in the regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Nogzi committed Oct 22, 2021
1 parent 1ae1b15 commit 878042b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion players.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def send(self, kind, message):

def search(self, query: str):
url_check = query
if re.search("/([a-z]*[.])\w+/", url_check) == True:
if re.search("([a-z]*[.])\w+", url_check) == True:
return "You cant use links"
results = self.dz.api.search(query)['data']
#print(results[0:9])
Expand Down

0 comments on commit 878042b

Please sign in to comment.