Fix alert confirm actions so they match to end of line

Without this fix, actions like "Confirm the alert title is .." incorrectly match "Confirm the alert". I found out the hard way :-(