File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/debugger/src/robotcode/debugger Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1637,8 +1637,8 @@ def get_variables(
16371637
16381638 return list (result .values ())
16391639
1640- IS_VARIABLE_RE : ClassVar = re .compile (r"^[$@&% ]\{.*\}(\[[^\]]*\])?$" )
1641- IS_VARIABLE_ASSIGNMENT_RE : ClassVar = re .compile (r"^[$@&% ]\{.*\}=?$" )
1640+ IS_VARIABLE_RE : ClassVar = re .compile (r"^[$@&]\{.*\}(\[[^\]]*\])?$" )
1641+ IS_VARIABLE_ASSIGNMENT_RE : ClassVar = re .compile (r"^[$@&]\{.*\}=?$" )
16421642 SPLIT_LINE : ClassVar = re .compile (r"(?= {2,}| ?\t)\s*" )
16431643 CURRDIR : ClassVar = re .compile (r"(?i)\$\{CURDIR\}" )
16441644
@@ -1762,8 +1762,10 @@ def run_kw() -> Any:
17621762 else :
17631763 result = internal_evaluate_expression (vars .replace_string (expression ), vars )
17641764 else :
1765- if self .IS_VARIABLE_RE .match (expression .strip ()):
1766- result = vars [expression .strip ()]
1765+ parts = self .SPLIT_LINE .split (expression .strip ())
1766+ if parts and len (parts ) == 1 and self .IS_VARIABLE_RE .match (parts [0 ].strip ()):
1767+ # result = vars[parts[0].strip()]
1768+ result = vars .replace_scalar (parts [0 ].strip ())
17671769 else :
17681770
17691771 def get_test_body_from_string (command : str ) -> TestCase :
You can’t perform that action at this time.
0 commit comments