Skip to content

Commit 0416b18

Browse files
committed
Fixed roblox case-sensitive
1 parent b814db2 commit 0416b18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

user_scanner/gaming/roblox.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def validate_roblox(user):
2626
return 2
2727

2828
for entry in search_results["data"]: # iterates through the entries in the search results
29-
if entry["name"] == user: # if a username matches the user
29+
# .lower() so casing from the API doesn't matter
30+
if entry["name"].lower() == user.lower(): # if a username matches the user
3031
return 0
3132
return 1
3233

0 commit comments

Comments
 (0)