Skip to content

Commit d5496b0

Browse files
committed
stateengine plugin: fix regex
1 parent dc57727 commit d5496b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stateengine/StateEngineTools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def convert_str_to_list(value, force=True):
355355
# returns: OrderedDict or original value
356356
def convert_str_to_dict(value):
357357
if isinstance(value, str) and value.startswith("["):
358-
value = re.split('(, (?![^(]*\)))', value.strip(']['))
358+
value = re.split(r'(, (?![^(]*\)))', value.strip(']['))
359359
value = [s for s in value if s != ', ']
360360
result = []
361361
for s in value:

0 commit comments

Comments
 (0)