From: Jacob Keller Date: Fri, 14 Aug 2015 21:59:40 +0000 (-0700) Subject: aiaiai: use correct backref numbers for $m and $n X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8ca608cd71f9bb8985e1f847d16b75d7c53e2a93;p=users%2Fdedekind%2Faiaiai.git aiaiai: use correct backref numbers for $m and $n Fix subject handling of X/n patches which incorrectly pulled the subject out using the wrong prefix. Signed-off-by: Jacob Keller Fixes: 3531d588c7f4 ("aiaiai-email-sh-functions: allow patches without PATCH prefix") --- diff --git a/email/aiaiai-email-sh-functions b/email/aiaiai-email-sh-functions index f380ae8..cb0feed 100644 --- a/email/aiaiai-email-sh-functions +++ b/email/aiaiai-email-sh-functions @@ -34,8 +34,8 @@ __patch="([Pp][Aa][Tt][Cc][Hh])?" __single="^${__blah}\[${__prefix}${__patch}.*\].*$" # Sed regexps matching m and n __series="^${__blah}\[${__prefix}${__patch}.*${__blank}${__num}\/?${__num}${__blanks}\].*$" -__mref="\3" -__nref="\4" +__mref="\4" +__nref="\5" # Get "m" (patch's number in the series) from the subject # Usage: subject_m