]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
aiaiai: use correct backref numbers for $m and $n
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 14 Aug 2015 21:59:40 +0000 (14:59 -0700)
committerJacob Keller <jacob.e.keller@intel.com>
Fri, 14 Aug 2015 21:59:40 +0000 (14:59 -0700)
Fix subject handling of X/n patches which incorrectly pulled the subject
out using the wrong prefix.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Fixes: 3531d588c7f4 ("aiaiai-email-sh-functions: allow patches without PATCH prefix")
email/aiaiai-email-sh-functions

index f380ae87ea7c43c2f890feadce6e2fc47b2fa54f..cb0feed23a412ab646f1e29cac66139cba1e64e0 100644 (file)
@@ -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 <subject>