From 500345465e9d78cc9c782febfcbede4145525876 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 4 Mar 2008 18:42:39 +0000 Subject: Tighten the funct_start_re so that it doesn't match leading whitespace since that's not needed. svn path=/main/trunk/; revision=9433 --- bin/filter-bash-environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/filter-bash-environment.py') diff --git a/bin/filter-bash-environment.py b/bin/filter-bash-environment.py index 0c1e67911..861f0a693 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'^\s*[-\w]*\s*\(\)\s*$') +func_start_re = re.compile(r'^[-\w]*\s*\(\)\s*$') func_end_re = re.compile(r'^\}$') def compile_egrep_pattern(s): -- cgit v1.2.3-1-g7c22