From 7042566e4bdaaec059aea4f53eeefc4f362648cd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 7 Jan 2020 14:32:50 +0100 Subject: pkg/email: accept #syz- prefix for commands Some users spell the command as "#syz-dup:". Support this and few more variations. --- pkg/email/reply_test.go | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'pkg/email/reply_test.go') diff --git a/pkg/email/reply_test.go b/pkg/email/reply_test.go index 75d2eca09..4e6256ccf 100644 --- a/pkg/email/reply_test.go +++ b/pkg/email/reply_test.go @@ -40,6 +40,34 @@ line3 this is reply > line3 +`, + }, + { + email: ` +#syz-fix +line2 +`, + reply: "this is reply", + result: `> +> #syz-fix + +this is reply + +> line2 +`, + }, + { + email: ` +#syz: fix +line2 +`, + reply: "this is reply", + result: `> +> #syz: fix + +this is reply + +> line2 `, }, { -- cgit mrf-deployment