1
0
mirror of https://github.com/axllent/mailpit.git synced 2024-12-30 23:17:59 +02:00

Fix: Correctly detect tags in search (UI)

This commit is contained in:
Ralph Slooten 2023-10-05 17:23:22 +13:00
parent d4218df1cf
commit 7446f52205

View File

@ -19,7 +19,7 @@ export default {
return false
}
let re = new RegExp(`\\b[^\-!]tag:"?${tag}"?\\b`, 'i')
let re = new RegExp(`(^|\\s)tag:"?${tag}"?($|\\s)`, 'i')
return query.match(re)
}
}