Fix regex

This commit is contained in:
Tarrgon
2025-07-17 06:18:23 -04:00
parent dffd7d572e
commit 9fdecf8afc
+1 -1
View File
@@ -20,7 +20,7 @@ export function shouldAlert(ticketPhrase: TicketPhrase, ticket: Ticket): { alert
}
} else {
try {
const regex = new RegExp(ticketPhrase.phrase.substring(1, ticketPhrase.phrase.length - 2), 'i');
const regex = new RegExp(ticketPhrase.phrase.slice(1, -1), 'i');
const regexMatch = regex.exec(ticket.reason);