diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-09-19 18:32:17 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 18:12:16 +0200 |
commit | 8d9e99a6917774bbc2ca0d90b39c26d866510964 (patch) | |
tree | df7451d95031a5b6b2838bf0e468232bd1b75306 /vtysh/extract.pl.in | |
parent | lib: fix ICC warning in route-map code (diff) | |
download | frr-8d9e99a6917774bbc2ca0d90b39c26d866510964.tar.xz frr-8d9e99a6917774bbc2ca0d90b39c26d866510964.zip |
vtysh: make extract.pl more whitespace-robust
"DEFUN (" could only match with exactly one space between DEFUN and
opening brace. Allow any amount of space.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'vtysh/extract.pl.in')
-rwxr-xr-x | vtysh/extract.pl.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/extract.pl.in b/vtysh/extract.pl.in index cd19fa754..b4884b968 100755 --- a/vtysh/extract.pl.in +++ b/vtysh/extract.pl.in @@ -94,7 +94,7 @@ foreach (@ARGV) { # $_ will contain the entire string including the DEFUN, ALIAS, etc. # We need to extract the DEFUN/ALIAS from everything in ()s. # The /s at the end tells the regex to allow . to match newlines. - $_ =~ /^(.*?) \((.*)\)$/s; + $_ =~ /^(.*?)\s*\((.*)\)$/s; my (@defun_array); $defun_or_alias = $1; |