From cccf4e3f80da4582c81b3a014d5726922a0a0c85 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 2 Nov 2019 13:13:37 -0700 Subject: add possible 'vN-' prefix to git-format-patch(1) filename regexp Signed-off-by: Sean Whitton --- mailscripts.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mailscripts.el') diff --git a/mailscripts.el b/mailscripts.el index d4d7e95..d8f60a6 100644 --- a/mailscripts.el +++ b/mailscripts.el @@ -102,7 +102,8 @@ git-format-patch(1)." (let* ((disposition (mm-handle-disposition p)) (filename (cdr (assq 'filename disposition)))) (and filename - (string-match "^[0-9]+-.+\.\\(patch\\|diff\\|txt\\)$" filename) + (string-match + "^\\(v[0-9]+-\\)?[0-9]+-.+\.\\(patch\\|diff\\|txt\\)$" filename) (mm-pipe-part p "git am")))) mm-handle)))) -- cgit v1.2.3