Skip to content

Commit

Permalink
Allow periods in config parameter names during emanesh set config
Browse files Browse the repository at this point in the history
commands.

Submitted-by: Thomas Goff <thomas.goff@ll.mit.edu>
See #47
  • Loading branch information
sgalgano committed Jun 9, 2016
1 parent 6080da0 commit 371ec97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emanesh/emanesh/emaneshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ def do_set(self,args):
<nem> ::= [1-9] | [1-9][0-9]+
<expressions> ::= <expression> | <expression> <expressions>
<expression> ::= <name>'='<values>
<name> ::= [A-Za-z0-9]+
<name> ::= [.A-Za-z0-9]+
<values> ::= <value> | <value>','<values>
<value> ::= value-string
Expand Down Expand Up @@ -751,7 +751,7 @@ def do_set(self,args):
updates = []
if len(args) > index:
for expression in args[index:]:
m = re.match('^([0-9A-Za-z]+)=(.+)', expression)
m = re.match('^([.0-9A-Za-z]+)=(.+)', expression)

def toBool(val):
val = val.lower()
Expand Down

0 comments on commit 371ec97

Please sign in to comment.