Skip to content

Commit

Permalink
stateengine plugin: minor code refactor for stateengine tools
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed Sep 10, 2023
1 parent 916ccc6 commit 3e92e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stateengine/StateEngineTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def parse_relative(evalstr, begintag, endtags):
rel = rest[:rest.find(endtag)]
rest = rest[rest.find(endtag)+len(endtag):]
if 'property' in endtag:
rest1 = re.split('( |\+|-|\*|/)', rest, 1)
rest1 = re.split('([ +\-*/])', rest, 1)
rest = ''.join(rest1[1:])
pref += "se_eval.get_relative_itemproperty('{}', '{}')".format(rel, rest1[0])
elif '()' in endtag:
Expand Down

0 comments on commit 3e92e4f

Please sign in to comment.