From: Zac Medico Date: Tue, 4 Mar 2008 18:43:58 +0000 (-0000) Subject: Fix func_start_re so that it requires at least one alphanumeric character. X-Git-Tag: v2.2_pre4~17 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=c51ce698b7629cb133550777a8e177d582c4acdc;p=portage.git Fix func_start_re so that it requires at least one alphanumeric character. svn path=/main/trunk/; revision=9434 --- diff --git a/bin/filter-bash-environment.py b/bin/filter-bash-environment.py index 861f0a693..93b049768 100755 --- a/bin/filter-bash-environment.py +++ b/bin/filter-bash-environment.py @@ -12,7 +12,7 @@ egrep_compat_map = { } here_doc_re = re.compile(r'.*\s<<[-]?(\w+)$') -func_start_re = re.compile(r'^[-\w]*\s*\(\)\s*$') +func_start_re = re.compile(r'^[-\w]+\s*\(\)\s*$') func_end_re = re.compile(r'^\}$') def compile_egrep_pattern(s):