summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-11-27 14:46:22 +0200
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-11-28 10:28:35 +0200
commit1635c9d11b9b4c83417dce42826473f41f4ce55b (patch)
treeaa4a301bb9fc4fc1287666ab885848d780ff3ca1
parent7497412c9add17abd791f1ea85185efe2d1fa810 (diff)
downloadaiaiai-1635c9d11b9b4c83417dce42826473f41f4ce55b.tar.gz
sh-function: rename __ws to __blanks
The internal __ws variable is a short-cut for "zero or reasonable amount of white-space or tab characters". This patch renames it to "__blanks", which is a bit more readable. Additionally I make the reasonable amount to be 8 blanks instead of 4. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-rw-r--r--aiaiai-sh-functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/aiaiai-sh-functions b/aiaiai-sh-functions
index 00a13a2..15d4d4a 100644
--- a/aiaiai-sh-functions
+++ b/aiaiai-sh-functions
@@ -77,17 +77,17 @@ fetch_header_per_patch()
prefix_format="[PATCH <ver> <m/n>]"
# Reasonable number of blanks
-__ws="[[:blank:]]{0,4}"
+__blanks="[[:blank:]]{0,16}"
# Reasonable number of [blah] prefixes
-__prfx="(\[[^]]*\]${__ws}){0,4}"
+__prfx="(\[[^]]*\]${__blanks}){0,4}"
# Patch number pattern
__num="0*([[:digit:]]+)"
# The "PATCH" word for case-insensitive matching
__patch="[Pp][Aa][Tt][Cc][Hh]"
# Sed regexp matching correct subject
-__single="^${__prfx}\[${__ws}${__patch}.*\].*$"
+__single="^${__prfx}\[${__blanks}${__patch}.*\].*$"
# Sed regexps matching m and n
-__series="^${__prfx}\[${__ws}${__patch}.*[[:blank:]]+${__num}\/{0,1}${__num}${__ws}\].*$"
+__series="^${__prfx}\[${__blanks}${__patch}.*[[:blank:]]+${__num}\/{0,1}${__num}${__blanks}\].*$"
__mref="\2"
__nref="\3"