Skip to content

Commit

Permalink
Make /device and /version case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
luk1337 committed Jul 11, 2023
1 parent 11828cb commit c8174a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def validate(description):
seen.append(label)
if label in label_data.keys():
if label_data[label]["data"]:
value = next((x for x in options[label] if x.casefold() == value.casefold()), value)
already_valid, value = validate_version(label, value)
if value in options[label] or already_valid:
labels.append(f"{label}:{value}")
Expand Down

0 comments on commit c8174a9

Please sign in to comment.