Skip to content

Commit 962a376

Browse files
committed
Fix checking for ticket number
Previously it wasn't working in case when ticket has upper-case letters.
1 parent b31f4b5 commit 962a376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre_ticket/tickets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def is_ticket_in_message(contents, ticket):
2424
if stripped == "" or stripped.startswith("#"):
2525
continue
2626

27-
if ticket in stripped:
27+
if ticket.lower() in stripped:
2828
return True
2929

3030

0 commit comments

Comments
 (0)