Skip to content

Commit b45c9ee

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: Invoke-Interpreter Call Operator Support ( Fixes #920 )
Variable Regex Fix
1 parent 9da95c8 commit b45c9ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Commands/Interpreters/Invoke-Interpreter.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function Invoke-Interpreter {
2828

2929
# If the first word is a variable
3030
if ($MyWords[0] -match '^\$(?<v>\w+)') {
31-
$firstWordVariableValue = $ExecutionContext.SessionState.PSVariable.Get($matches.0 -replace '^\s\$').Value
31+
$firstWordVariableValue = $ExecutionContext.SessionState.PSVariable.Get($matches.0 -replace '^\$').Value
3232
# and it has a value
3333
if ($firstWordVariableValue) {
3434
# use that as the InvocationName.

0 commit comments

Comments
 (0)