Skip to content

Commit

Permalink
Improve split for concat groups
Browse files Browse the repository at this point in the history
  • Loading branch information
gaow committed Apr 10, 2019
1 parent 6f55c7c commit 3b4fdc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dsc_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ def expand_ensemble(self, value):
# that is, only exists alternating modules not concatenate modules
self.groups[lhs] = [x.strip() for x in rhs.replace(')','').replace('(','').split(',')]
else:
self.concats[lhs] = [x.strip() for x in rhs.replace(')','').replace('(','').replace('*', '').split(',')]
self.concats[lhs] = [x.strip() for x in re.split("\,|\*", rhs.replace(')','').replace('(',''))]
# http://www.regular-expressions.info/wordboundaries.html
value = re.sub(r"\b%s\b" % lhs, rhs, value)
return value
Expand Down

0 comments on commit 3b4fdc6

Please sign in to comment.