Fix func_start_re so that it requires at least one alphanumeric character.
authorZac Medico <zmedico@gentoo.org>
Tue, 4 Mar 2008 18:43:58 +0000 (18:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 4 Mar 2008 18:43:58 +0000 (18:43 -0000)
svn path=/main/trunk/; revision=9434

bin/filter-bash-environment.py

index 861f0a6939f5cc023e78e3b9cc27075308db7b11..93b049768d20d936bcbf3598b60e9eb337050350 100755 (executable)
@@ -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):