Not all patches are submitted with a PATCH prefix. This patch enables
the PATCH prefix to be left out, and hopefully cover more patches in
testing.
Future work should include a more robust way of determining if an email
is a patch that does not rely on the subject format, such as searching
for the diff line.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
# Patch number pattern
__num="0*([[:digit:]]+)"
# The "PATCH" word for case-insensitive matching
-__patch="[Pp][Aa][Tt][Cc][Hh]"
+__patch="([Pp][Aa][Tt][Cc][Hh])?"
# Sed regexp matching correct subject
__single="^${__blah}\[${__prefix}${__patch}.*\].*$"
# Sed regexps matching m and n