diff options
author | Maurizio Lombardi <mlombard@redhat.com> | 2019-08-20 11:32:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 11:32:41 +0200 |
commit | e2d94d3562534b0a73ecd9a95c553337bfac09c2 (patch) | |
tree | b46dae106837b51e6265657c27a5cbe7ecf069d1 | |
parent | 57c898b1e5cd5cde088f60ea7d9997f603e42050 (diff) | |
parent | 61eb947833a13d97a838cd659b64123bd0b4b5d0 (diff) | |
download | configshell-fb-e2d94d3562534b0a73ecd9a95c553337bfac09c2.tar.gz |
Merge pull request #48 from maurizio-lombardi/master
Fix failing to parse params with additional chars
-rw-r--r-- | configshell/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configshell/shell.py b/configshell/shell.py index bb4dd32..19ce01c 100644 --- a/configshell/shell.py +++ b/configshell/shell.py @@ -118,7 +118,7 @@ class ConfigShell(object): # Grammar of the command line command = locatedExpr(Word(alphanums + '_'))('command') - var = Word(alphanums + ';,=_\+/.<>()~@:-%[]') + var = Word(alphanums + '?;&*$!#,=_\+/.<>()~@:-%[]') value = var keyword = Word(alphanums + '_\-') kparam = locatedExpr(keyword + Suppress('=') + Optional(value, default=''))('kparams*') |