Skip to content

Commit 4f08766

Browse files
committed
Add brackets to force separator to also exist in the split
1 parent e7f5117 commit 4f08766

File tree

1 file changed

+1
-1
lines changed
  • scripts/py_matter_yamltests/matter_yamltests

1 file changed

+1
-1
lines changed

scripts/py_matter_yamltests/matter_yamltests/parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ def _config_variable_substitution(self, value):
12251225
# But some other tests were relying on the fact that the expression was put 'as if' in
12261226
# the generated code and was resolved before being sent over the wire. For such
12271227
# expressions (e.g 'myVar + 1') we need to compute it before sending it over the wire.
1228-
tokens = re.split("[- ()|+*/%]", value)
1228+
tokens = re.split("([- ()|+*/%])", value)
12291229
if len(tokens) == 0:
12301230
return value
12311231

0 commit comments

Comments
 (0)