From: Quentin Young Date: Fri, 11 Nov 2016 20:37:43 +0000 (+0000) Subject: lib: Allow '-' to match VARIABLE_TKN X-Git-Tag: frr-3.0-branchpoint~129^2~37 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=90e9905f07695fd32696f3d543cbe4ed432263b6;p=mirror%2Ffrr.git lib: Allow '-' to match VARIABLE_TKN Signed-off-by: Quentin Young --- diff --git a/lib/command_match.c b/lib/command_match.c index 8fa8da6b10..ce03563acd 100644 --- a/lib/command_match.c +++ b/lib/command_match.c @@ -842,7 +842,7 @@ match_word (struct cmd_token *token, const char *word) } #define VARIABLE_ALPHABET \ -"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890:/._" +"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890:/._-" static enum match_type match_variable (struct cmd_token *token, const char *word)