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/parser_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'pkg/email/parser_test.go') diff --git a/pkg/email/parser_test.go b/pkg/email/parser_test.go index ba027f8e7..f093a0d22 100644 --- a/pkg/email/parser_test.go +++ b/pkg/email/parser_test.go @@ -171,6 +171,24 @@ line 2 cmd: CmdNone, args: "", }, + { + body: `#syz-fix: bar baz`, + cmd: CmdFix, + str: "fix:", + args: "bar baz", + }, + { + body: `#syz-fix bar baz`, + cmd: CmdFix, + str: "fix", + args: "bar baz", + }, + { + body: `#syz: fix: bar baz`, + cmd: CmdFix, + str: "fix:", + args: "bar baz", + }, // This is unfortunate case when a command is split by email client // due to 80-column limitation. { -- cgit mrf-deployment