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(
1637
1637
1638
1638
return list (result .values ())
1639
1639
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"^[$@&]\{.*\}=?$" )
1642
1642
SPLIT_LINE : ClassVar = re .compile (r"(?= {2,}| ?\t)\s*" )
1643
1643
CURRDIR : ClassVar = re .compile (r"(?i)\$\{CURDIR\}" )
1644
1644
@@ -1762,8 +1762,10 @@ def run_kw() -> Any:
1762
1762
else :
1763
1763
result = internal_evaluate_expression (vars .replace_string (expression ), vars )
1764
1764
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 ())
1767
1769
else :
1768
1770
1769
1771
def get_test_body_from_string (command : str ) -> TestCase :
You can’t perform that action at this time.
0 commit comments