Skip to content
Snippets Groups Projects
Commit 358cdeb3 authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix subject ticket number matcher (again)

parent a74d9a5c
No related branches found
No related tags found
No related merge requests found
......@@ -728,7 +728,7 @@ Class ThreadEntry {
$subject = $mailinfo['subject'];
$match = array();
if ($subject && $mailinfo['email']
&& preg_match("/#[\p{L}-]+?([0-9]{1,10})/u", $subject, $match)
&& preg_match("/#(?:[\p{L}-]+)?([0-9]{1,10})/u", $subject, $match)
&& ($tid = Ticket::getIdByExtId((int)$match[1], $mailinfo['email']))
)
// Return last message for the thread
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment